This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patches for missing includes



FYI: I've committed the appended patch to fix the following warnings:

vismod2.c:108: warning: implicit declaration of function `abort'
join.c:79: warning: implicit declaration of function `exit'
aio_suspend.c:113: warning: implicit declaration of function `abort'
../linuxthreads/sysdeps/pthread/timer_routines.c:329: warning: implicit declaration of function `memset'

Andreas

2000-06-21  Andreas Jaeger  <aj@suse.de>

	* sysdeps/pthread/timer_routines.c: Include <stdlib.h> for memset
	prototype.

	* join.c: Include <stdlib.h> for exit prototype.

2000-06-21  Andreas Jaeger  <aj@suse.de>

	* elf/vismod2.c: Include <stdlib.h> for abort prototype.
	* rt/aio_suspend.c: Likewise.

============================================================
Index: linuxthreads/join.c
--- linuxthreads/join.c	2000/06/10 07:26:28	1.14
+++ linuxthreads/join.c	2000/06/21 10:31:16
@@ -16,6 +16,7 @@
 
 #include <errno.h>
 #include <sched.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include "pthread.h"
 #include "internals.h"
============================================================
Index: linuxthreads/sysdeps/pthread/timer_routines.c
--- linuxthreads/sysdeps/pthread/timer_routines.c	2000/06/20 00:32:33	1.9
+++ linuxthreads/sysdeps/pthread/timer_routines.c	2000/06/21 10:31:17
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <pthread.h>
 #include <stddef.h>
+#include <string.h>
 #include <sysdep.h>
 #include <time.h>
 #include <unistd.h>
============================================================
Index: elf/vismod2.c
--- elf/vismod2.c	2000/05/23 18:12:26	1.1
+++ elf/vismod2.c	2000/06/21 10:31:17
@@ -16,6 +16,8 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <stdlib.h>
+
 int
 protlocal (void)
 {
============================================================
Index: rt/aio_suspend.c
--- rt/aio_suspend.c	1999/08/15 18:09:34	1.5
+++ rt/aio_suspend.c	2000/06/21 10:31:17
@@ -30,6 +30,7 @@
 #undef aio_suspend64
 
 #include <errno.h>
+#include <stdlib.h>
 
 #include "aio_misc.h"
 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]