]> Git Repo - uclibc-ng.git/commitdiff
Fix up a few messes so it compiles cleanly again.
authorEric Andersen <[email protected]>
Sat, 11 Nov 2000 01:20:50 +0000 (01:20 -0000)
committerEric Andersen <[email protected]>
Sat, 11 Nov 2000 01:20:50 +0000 (01:20 -0000)
include/time.h
include/unistd.h
libc/inet/resolv.c
libc/stdlib/mkstemp.c
libc/stdlib/mktemp.c
libc/stdlib/setenv.c
libc/sysdeps/linux/common/tell.c

index 9bbcd8be0611055d078aabd3602faaf409f54d4e..12d7e6c61dc853244ef5482a8fb8a5217d907239 100644 (file)
@@ -108,15 +108,11 @@ extern time_t timelocal __P ((struct tm *__tp));
 
 #endif
 
-#if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_REENTRANT)
-
 extern char    * asctime_r     __P((__const struct tm *, char *));
 extern char    * ctime_r       __P((__const time_t *, char *));
 extern struct tm* gmtime_r     __P((__const time_t *, struct tm *));
 extern struct tm* localtime_r  __P((__const time_t *, struct tm *));
 
-#endif
-
 struct timespec;
 
 /* IEEE Std 1003.1b-1993. */
index a9f9e417981d3ff99bdd2c554967494018427047..8da0ffe90bb1ade8957a117c7d000b4d48fa6d6c 100644 (file)
 #ifndef        _UNISTD_H
 #define        _UNISTD_H       1
 
+#include <errno.h>
 #include <features.h>
+#include <sys/types.h>
+#include <asm/unistd.h>
 
 __BEGIN_DECLS
 
@@ -173,6 +176,8 @@ __BEGIN_DECLS
    */
 
 #include <bits/posix_opt.h>
+/* At this time, we don't do pthreads... Sorry... */
+#undef _POSIX_THREADS
 
 /* Get the environment definitions from Unix98.  */
 #ifdef __USE_UNIX98
index 7b367ed4c40d63318cedc75548a809b28bda03a9..718d71a0d50d56af3de700de931d895459bbac55 100644 (file)
@@ -12,6 +12,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <signal.h>
+#include <errno.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <netinet/in.h>
index 73895281555c3e6e9e0a60479304e21778316d3a..551f03199d24a8de7b5fe746e6dd41333248fb95 100644 (file)
@@ -1,5 +1,6 @@
 #include <string.h>
 #include <features.h>
+#include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
 
index cfdcf0913c7ac0ffd4b3304145d5b4bde2ab7813..4b9f71d4757cb3a163065054bf8184682ee17cca 100644 (file)
@@ -1,5 +1,6 @@
 #include <string.h>
 #include <features.h>
+#include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>
index b172805629320bb7cb2c892cfc8950b677018b44..6628e4cc796687d4a4b03ec37406fa9850e6241c 100644 (file)
@@ -19,6 +19,7 @@ Cambridge, MA 02139, USA.  */
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <errno.h>
 
 #if !defined(HAVE_GNU_LD) && !defined (__ELF__)
 #define        __environ       environ
index b58f3f9442f3f5ff3d183d59f8917bf5b32c9ae2..dcae8320653ee27599c7340cc602576b335b4ed0 100644 (file)
@@ -1,4 +1,5 @@
 #define lseek __normal_lseek
+#include <errno.h>
 #include <unistd.h>
 #include <syscall.h>
 #undef lseek
This page took 0.040302 seconds and 4 git commands to generate.