diff options
author | wtchang%redhat.com <devnull@localhost> | 2006-12-01 22:52:34 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2006-12-01 22:52:34 +0000 |
commit | 543489c4c4d6ae0b03644a370cf75af9c7613727 (patch) | |
tree | f2bb66b9624bda1f5c03ce8714f1f5e9d7f4b393 | |
parent | 932216510c3d4ca18a2f14404270bad9620aa62d (diff) | |
download | nspr-hg-543489c4c4d6ae0b03644a370cf75af9c7613727.tar.gz |
Bugzilla Bug 355999: fix up for kfreebsd support. The patch is contributed
by Petr.Salinger@seznam.cz. r=wtc
Modified files: _linux.cfg _linux.h
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r-- | pr/include/md/_linux.cfg | 4 | ||||
-rw-r--r-- | pr/include/md/_linux.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg index 6083d5ed..7c5472f2 100644 --- a/pr/include/md/_linux.cfg +++ b/pr/include/md/_linux.cfg @@ -51,7 +51,11 @@ #define LINUX #endif +#ifdef __FreeBSD_kernel__ +#define PR_AF_INET6 28 /* same as AF_INET6 */ +#else #define PR_AF_INET6 10 /* same as AF_INET6 */ +#endif #ifdef __powerpc64__ diff --git a/pr/include/md/_linux.h b/pr/include/md/_linux.h index 92a5f38a..5b794c5d 100644 --- a/pr/include/md/_linux.h +++ b/pr/include/md/_linux.h @@ -35,6 +35,11 @@ * * ***** END LICENSE BLOCK ***** */ +/* + * This file is used by not only Linux but also other glibc systems + * such as GNU/Hurd and GNU/k*BSD. + */ + #ifndef nspr_linux_defs_h___ #define nspr_linux_defs_h___ @@ -90,6 +95,10 @@ #define HAVE_DLL #define USE_DLFCN +#ifdef __FreeBSD_kernel__ +#define _PR_HAVE_SOCKADDR_LEN +#endif + #if defined(__i386__) #define _PR_HAVE_ATOMIC_OPS #define _MD_INIT_ATOMIC() |