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
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,10 @@
# include <libutil.h>
#endif
#if defined(__linux__) || defined(BSD)
# define mysetenv setenv
#endif
#ifdef __linux__
# include <pty.h>
#endif
@ -124,6 +128,7 @@ struct dg_user **users = NULL;
struct dg_user *me = NULL;
struct dg_banner banner;
#if !(defined(__linux__) || defined(BSD))
int
mysetenv (const char* name, const char* value, int overwrite)
{
@ -142,6 +147,7 @@ mysetenv (const char* name, const char* value, int overwrite)
return retval;
}
#endif /* !linux && !bsd */
void
create_config ()