X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fputenv.c;h=87c5522810ac60ad8b61bf2ad990810642c523ab;hb=de436cfd34d49953182ea29aea1d9352b6ac106c;hp=f5ce1dd882ac3f65208e2195d7d2f5a104e84a47;hpb=7dce93e95aed216724eb68e966450f85dba6a979;p=gnulib.git diff --git a/lib/putenv.c b/lib/putenv.c index f5ce1dd88..87c552281 100644 --- a/lib/putenv.c +++ b/lib/putenv.c @@ -37,23 +37,15 @@ extern int errno; with a non-const argument. That would conflict with the declaration of rpl_putenv below (due to the #define putenv rpl_putenv from config.h). */ -char *malloc (); +void *malloc (); void free (); -#if defined (__GNU_LIBRARY__) || defined (HAVE_STRING_H) -# include -#endif +#include + #if defined (__GNU_LIBRARY__) || defined (HAVE_UNISTD_H) # include #endif -#if !defined (__GNU_LIBRARY__) && !defined (HAVE_STRCHR) -# define strchr index -#endif -#if !defined (__GNU_LIBRARY__) && !defined (HAVE_MEMCPY) -# define memcpy(d,s,n) bcopy ((s), (d), (n)) -#endif - #if HAVE_GNU_LD # define environ __environ #else @@ -71,10 +63,6 @@ __libc_lock_define_initialized (static, envlock) # define UNLOCK #endif -#ifndef NULL -# define NULL 0 -#endif - static int unsetenv (const char *name) {