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:
Joshua Kwan 2004-01-16 02:02:40 +00:00
parent ff73c6b2cb
commit 61efafdd49

View File

@ -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 ()