mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-29 16:45:35 +02:00
don't use on BSD and Linux, setenv(3) is BSD 4.3
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@120 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
ff73c6b2cb
commit
61efafdd49
@ -60,6 +60,10 @@
|
|||||||
# include <libutil.h>
|
# include <libutil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__linux__) || defined(BSD)
|
||||||
|
# define mysetenv setenv
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# include <pty.h>
|
# include <pty.h>
|
||||||
#endif
|
#endif
|
||||||
@ -124,6 +128,7 @@ struct dg_user **users = NULL;
|
|||||||
struct dg_user *me = NULL;
|
struct dg_user *me = NULL;
|
||||||
struct dg_banner banner;
|
struct dg_banner banner;
|
||||||
|
|
||||||
|
#if !(defined(__linux__) || defined(BSD))
|
||||||
int
|
int
|
||||||
mysetenv (const char* name, const char* value, int overwrite)
|
mysetenv (const char* name, const char* value, int overwrite)
|
||||||
{
|
{
|
||||||
@ -142,6 +147,7 @@ mysetenv (const char* name, const char* value, int overwrite)
|
|||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
#endif /* !linux && !bsd */
|
||||||
|
|
||||||
void
|
void
|
||||||
create_config ()
|
create_config ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user