* lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
* modules/getcwd (Depends-on): Add dirfd.
* lib/putenv.c (putenv): #undef it.
(rpl_putenv): New decl.
(malloc, free): Include <stdlib.h> rather than prototyping separately.
+2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
+
+ Minor fixups to port to Solaris 10 with Sun C 5.8.
+ * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
+ * modules/getcwd (Depends-on): Add dirfd.
+ * lib/putenv.c (putenv): #undef it.
+ (rpl_putenv): New decl.
+ (malloc, free): Include <stdlib.h> rather than prototyping separately.
+
2007-02-20 Bruno Haible <bruno@clisp.org>
* modules/stdio-tests: New file.
#if !_LIBC
# include <config.h>
# include <unistd.h>
+# include "dirfd.h"
#endif
#include <errno.h>
#include <config.h>
+/* undef putenv here, because some (e.g., Solaris 10) declare putenv in
+ 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). */
+#undef putenv
+int rpl_putenv (char const *);
+
#include <stddef.h>
/* Include errno.h *after* sys/types.h to work around header problems
# define __set_errno(ev) ((errno) = (ev))
#endif
-/* Don't include stdlib.h because some (e.g., Solaris 7) declare putenv
- 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). */
-
-void *malloc ();
-void free ();
-
+#include <stdlib.h>
#include <string.h>
-
#include <unistd.h>
#if HAVE_GNU_LD
Depends-on:
mempcpy
d-ino
+dirfd
extensions
stdbool
unistd