Browse Source

Fix up a few messes so it compiles cleanly again.

Eric Andersen 23 years ago
parent
commit
dc7f2e1bf0

+ 0 - 4
include/time.h

@@ -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. */

+ 5 - 0
include/unistd.h

@@ -23,7 +23,10 @@
 #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

+ 1 - 0
libc/inet/resolv.c

@@ -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>

+ 1 - 0
libc/stdlib/mkstemp.c

@@ -1,5 +1,6 @@
 #include <string.h>
 #include <features.h>
+#include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
 

+ 1 - 0
libc/stdlib/mktemp.c

@@ -1,5 +1,6 @@
 #include <string.h>
 #include <features.h>
+#include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>

+ 1 - 0
libc/stdlib/setenv.c

@@ -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

+ 1 - 0
libc/sysdeps/linux/common/tell.c

@@ -1,4 +1,5 @@
 #define lseek __normal_lseek
+#include <errno.h>
 #include <unistd.h>
 #include <syscall.h>
 #undef lseek