Bugzilla Bug 261649: more changes for GNU/k*BSD and GNU/Hurd support.

The patch is contributed by Robert Millan <rmh@aybabtu.com>. r=wtc.
Modified files: nsinstall.c _pth.h pr/src/linking/Makefile.in prlink.c
pr/tests/Makefile.in
This commit is contained in:
wtchang%redhat.com 2005-12-24 15:03:31 +00:00
parent 5e5ecef9ea
commit bd77bad087
5 changed files with 6 additions and 5 deletions

View File

@ -98,7 +98,7 @@ my_getcwd (char *buf, size_t size)
}
#endif /* NEXTSTEP */
#ifdef LINUX
#if defined(LINUX) || defined(__GNU__) || defined(__GLIBC__)
#include <getopt.h>
#endif

View File

@ -200,7 +200,8 @@
/*
* These platforms don't have sigtimedwait()
*/
#if (defined(AIX) && !defined(AIX4_3_PLUS)) || defined(LINUX) \
#if (defined(AIX) && !defined(AIX4_3_PLUS)) \
|| defined(LINUX) || defined(__GNU__)|| defined(__GLIBC__) \
|| defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
|| defined(BSDI) || defined(VMS) || defined(UNIXWARE) \
|| defined(DARWIN)

View File

@ -63,7 +63,7 @@ TARGETS = $(OBJS)
INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include -I$(topsrcdir)/pr/include/private
# For Dl_info and dladdr.
ifeq (,$(filter-out Linux GNU GNU_kFreeBSD GNU_kNetBSD,$(OS_TARGET)))
ifeq (,$(filter-out Linux GNU GNU_%,$(OS_TARGET)))
DEFINES += -D_GNU_SOURCE
endif

View File

@ -1389,7 +1389,7 @@ PR_IMPLEMENT(char *)
PR_GetLibraryFilePathname(const char *name, PRFuncPtr addr)
{
#if defined(SOLARIS) || defined(FREEBSD) \
|| defined(LINUX) || defined(__GLIBC__)
|| defined(LINUX) || defined(__GNU__) || defined(__GLIBC__)
Dl_info dli;
char *result;

View File

@ -376,7 +376,7 @@ ifeq ($(OS_ARCH), NEWS-OS)
EXTRA_LIBS = -lsocket -lnsl -lgen -lresolv
endif
ifeq (,$(filter-out Linux GNU GNU_kFreeBSD GNU_kNetBSD,$(OS_ARCH)))
ifeq (,$(filter-out Linux GNU GNU_%,$(OS_ARCH)))
LDOPTS += -Xlinker -rpath $(ABSOLUTE_LIB_DIR)
ifeq ($(USE_PTHREADS),1)
EXTRA_LIBS = -lpthread