[PATCH] linuxthreads fix

Jakub Jelinek jakub@redhat.com
Tue Dec 31 05:37:00 GMT 2002


Hi!

#include <fork.h> is needed on IA-64 and SPARC, since otherwise it uses
the generic linux fork.h, not arch specific one.
The list.h changes are to shut up redefinition warnings - e.g. in malloc.c
which defines its own assert.

2002-12-31  Jakub Jelinek  <jakub@redhat.com>

linuxthreads/
	* sysdeps/pthread/list.h: Remove assert.h include.
	* sysdeps/unix/sysv/linux/fork.c: Include <fork.h>, not "fork.h".
nptl/
	* sysdeps/pthread/list.h: Remove assert.h include.

--- libc/linuxthreads/sysdeps/pthread/list.h	31 Dec 2002 09:12:51 -0000	1.1.1.1
+++ libc/linuxthreads/sysdeps/pthread/list.h	31 Dec 2002 11:24:33 -0000	1.2
@@ -20,8 +20,6 @@
 #ifndef _LIST_H
 #define _LIST_H	1
 
-#include <assert.h>
-
 /* The definitions of this file are adopted from those which can be
    found in the Linux kernel headers to enable people familiar with
    the latter find their way in these sources as well.  */
--- libc/linuxthreads/sysdeps/unix/sysv/linux/fork.c	31 Dec 2002 09:12:51 -0000	1.1.1.1
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/fork.c	31 Dec 2002 10:35:17 -0000	1.2
@@ -18,7 +18,7 @@
    02111-1307 USA.  */
 
 #include <errno.h>
-#include "fork.h"
+#include <fork.h>
 #include <bits/libc-lock.h>
 
 weak_extern (__pthread_fork);
--- libc/nptl/sysdeps/pthread/list.h	27 Nov 2002 11:30:26 -0000	1.1.1.1
+++ libc/nptl/sysdeps/pthread/list.h	31 Dec 2002 11:24:33 -0000	1.2
@@ -20,8 +20,6 @@
 #ifndef _LIST_H
 #define _LIST_H	1
 
-#include <assert.h>
-
 /* The definitions of this file are adopted from those which can be
    found in the Linux kernel headers to enable people familiar with
    the latter find their way in these sources as well.  */

	Jakub



More information about the Libc-hacker mailing list