about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog19
-rw-r--r--elf/nodlopenmod2.c2
-rw-r--r--elf/tst-tlsmod1.c1
-rw-r--r--include/libc-internal.h3
-rw-r--r--linuxthreads_db/ChangeLog4
-rw-r--r--linuxthreads_db/thread_dbP.h1
-rw-r--r--misc/error.c1
-rw-r--r--misc/init-misc.c1
-rw-r--r--posix/regcomp.c2
-rw-r--r--sysdeps/unix/sysv/linux/init-first.c2
-rw-r--r--sysdeps/wordsize-32/divdi3.c6
11 files changed, 39 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f819bc0df3..c266b02a84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2002-03-03  Andreas Jaeger  <aj@suse.de>
+
+	* elf/nodlopenmod2.c: Provide prototype to avoid warning.
+	* elf/tst-tlsmod1.c: Likewise.
+
+	* posix/regcomp.c: Get regex.h from include dir for internal
+	prototypes.
+
+	* sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
+	to libc-internal.h and include it.
+	* include/libc-internal.h: Add __init_misc.
+
+	* misc/init-misc.c: Include libc-internal.h for prototypes.
+
+	* sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
+
+	* misc/error.c [_LIBC]: Include libioP.h for prototype of
+	_IO_putc_internal.
+
 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
 
 	* posix/regcomp.c: Compatibility changes to allow using the code
diff --git a/elf/nodlopenmod2.c b/elf/nodlopenmod2.c
index ce1bbcc50f..e72ae53e95 100644
--- a/elf/nodlopenmod2.c
+++ b/elf/nodlopenmod2.c
@@ -1,5 +1,7 @@
 extern int a;
 
+extern int foo (void);
+
 int
 foo (void)
 {
diff --git a/elf/tst-tlsmod1.c b/elf/tst-tlsmod1.c
index 7e768a6593..946aa375cc 100644
--- a/elf/tst-tlsmod1.c
+++ b/elf/tst-tlsmod1.c
@@ -12,6 +12,7 @@ VAR_INT_DEF(bar);
 VAR_INT_DECL(baz);
 #endif
 
+extern int in_dso (void);
 
 int
 in_dso (void)
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 8369ffec2e..85afdc1b05 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -26,4 +26,7 @@ extern hp_timing_t __get_clockfreq (void);
 /* Free all allocated resources.  */
 extern void __libc_freeres (void);
 
+/* Define and initialize `__progname' et. al.  */
+extern void __init_misc (int, char **, char **);
+
 #endif /* _LIBC_INTERNAL  */
diff --git a/linuxthreads_db/ChangeLog b/linuxthreads_db/ChangeLog
index d4cf2aaeb7..d02ceec2fa 100644
--- a/linuxthreads_db/ChangeLog
+++ b/linuxthreads_db/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-03  Andreas Jaeger  <aj@suse.de>
+
+	* thread_dbP.h: Include <unistd.h> for prototypes of __libc_write.
+
 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
 
 	* thread_dbP.h: Include descr.h instead of internals.h.
diff --git a/linuxthreads_db/thread_dbP.h b/linuxthreads_db/thread_dbP.h
index 5d88a81528..a64a5b32aa 100644
--- a/linuxthreads_db/thread_dbP.h
+++ b/linuxthreads_db/thread_dbP.h
@@ -3,6 +3,7 @@
 #define _THREAD_DBP_H	1
 
 #include <string.h>
+#include <unistd.h>
 #include "proc_service.h"
 #include "thread_db.h"
 #include "../linuxthreads/descr.h"
diff --git a/misc/error.c b/misc/error.c
index 9d01066169..0e12297001 100644
--- a/misc/error.c
+++ b/misc/error.c
@@ -74,6 +74,7 @@ unsigned int error_message_count;
 
 # define program_name program_invocation_name
 # include <errno.h>
+# include <libio/libioP.h>
 
 /* In GNU libc we want do not want to use the common name `error' directly.
    Instead make it a weak alias.  */
diff --git a/misc/init-misc.c b/misc/init-misc.c
index 8b877c3c43..cab5f9f9e0 100644
--- a/misc/init-misc.c
+++ b/misc/init-misc.c
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <string.h>
+#include <libc-internal.h>
 
 char *__progname_full = (char *) "";
 char *__progname = (char *) "";
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 65b44e4ddb..44f55f24af 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -54,7 +54,7 @@
 # define gettext_noop(String) String
 #endif
 
-#include "regex.h"
+#include <regex.h>
 #include "regex_internal.h"
 
 static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
diff --git a/sysdeps/unix/sysv/linux/init-first.c b/sysdeps/unix/sysv/linux/init-first.c
index 7568a32ad1..3a7f4ffba7 100644
--- a/sysdeps/unix/sysv/linux/init-first.c
+++ b/sysdeps/unix/sysv/linux/init-first.c
@@ -33,8 +33,6 @@
 # include "dl-osinfo.h"
 #endif
 
-extern void __init_misc (int, char **, char **);
-
 /* The function is called from assembly stubs the compiler can't see.  */
 static void init (int, char **, char **) __attribute__ ((unused));
 
diff --git a/sysdeps/wordsize-32/divdi3.c b/sysdeps/wordsize-32/divdi3.c
index 7929e3019c..60a02b7712 100644
--- a/sysdeps/wordsize-32/divdi3.c
+++ b/sysdeps/wordsize-32/divdi3.c
@@ -50,6 +50,12 @@ struct DWstruct { Wtype low, high;};
 #endif
 typedef union { struct DWstruct s; DWtype ll; } DWunion;
 
+/* Prototypes of exported functions.  */
+extern DWtype __divdi3 (DWtype u, DWtype v);
+extern DWtype __moddi3 (DWtype u, DWtype v);
+extern UDWtype __udivdi3 (UDWtype u, UDWtype v);
+extern UDWtype __umoddi3 (UDWtype u, UDWtype v);
+
 static UDWtype
 __udivmoddi4 (UDWtype n, UDWtype d, UDWtype *rp)
 {