This is the mail archive of the libc-hacker@sources.redhat.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]
Other format: [Raw text]

[PATCH] linuxthreads fix


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


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