diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-05-19 21:31:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-05-19 21:31:39 +0000 |
commit | 278effd7ea616cf97f7be0431c3dbd5e58ae06b2 (patch) | |
tree | 825a93c8587834db9a328e3a2ee29642ce069527 /compat.h | |
parent | 59c13133dee99e821ab2fcdd5ca196f5752c9262 (diff) | |
download | rtmux-278effd7ea616cf97f7be0431c3dbd5e58ae06b2.tar.gz rtmux-278effd7ea616cf97f7be0431c3dbd5e58ae06b2.tar.bz2 rtmux-278effd7ea616cf97f7be0431c3dbd5e58ae06b2.zip |
Solaris 9 doesn't have setenv and unsetenv so add compat versions, based
on code from Dagobert Michelsen.
Diffstat (limited to 'compat.h')
-rw-r--r-- | compat.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: compat.h,v 1.20 2009-11-08 22:51:34 tcunha Exp $ */ +/* $Id: compat.h,v 1.21 2010-05-19 21:31:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -175,13 +175,19 @@ pid_t forkpty(int *, char *, struct termios *, struct winsize *); #ifndef HAVE_ASPRINTF /* asprintf.c */ -int asprintf(char **, const char *, ...); -int vasprintf(char **, const char *, va_list); +int asprintf(char **, const char *, ...); +int vasprintf(char **, const char *, va_list); #endif #ifndef HAVE_FGETLN /* fgetln.c */ -char *fgetln(FILE *, size_t *); +char *fgetln(FILE *, size_t *); +#endif + +#ifndef HAVE_SETENV +/* setenv.c */ +int setenv(char *, char *, int); +int unsetenv(char *); #endif #ifndef HAVE_GETOPT |