This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


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] fix building with linuxthreads/glibc-2.5/gai


the nptl gai_misc.h includes pthreadP.h while the linuxthreads gai_misc.h does 
not pull in any pthread headers

in the resolv subdir, most gai files will include pthread.h before pulling in 
gai_misc.h, but the gai_sigqueue.c file does not ... this leads to a build 
failure as gai_misc.h tries to use pthread defines/functions but no one has 
pulled in the pthread header file for it

attached patch adds a pthread.h include to gai_misc.h so there is no more 
implicit requirements

side note, there's some extraneous chars at the top of the linuxthreads 
ChangeLog at the moment ...
-mike

Attachment: pgp00000.pgp
Description: PGP signature

2006-10-12  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/pthread/gai_misc.h: Include pthread.h.

--- linuxthreads/sysdeps/pthread/gai_misc.h
+++ linuxthreads/sysdeps/pthread/gai_misc.h
@@ -23,6 +23,7 @@
 
 #include <assert.h>
 #include <signal.h>
+#include <pthread.h>
 
 #undef DONT_NEED_GAI_MISC_COND
 

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