diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-01 08:43:41 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-01 08:43:41 +0800 |
commit | ead2aeb28f8b0a153c0e76c4d1ca92b7d2372c96 (patch) | |
tree | 508e10e695833db15664b79caba7bb37e374d9ea | |
parent | 2e7cfcaca7e1c2aebb50413f01260be8d7c3e971 (diff) | |
download | freebsd-ports-gnome-ead2aeb28f8b0a153c0e76c4d1ca92b7d2372c96.tar.gz freebsd-ports-gnome-ead2aeb28f8b0a153c0e76c4d1ca92b7d2372c96.tar.zst freebsd-ports-gnome-ead2aeb28f8b0a153c0e76c4d1ca92b7d2372c96.zip |
Fix a bad assumption about socklen_t presence that was causing problems
on 64-bit platforms.
Submitted by: tmm
-rw-r--r-- | devel/nspr/Makefile | 2 | ||||
-rw-r--r-- | devel/nspr/files/patch-nspr-unix.c | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile index 0f7daff0932b..ffd157baae61 100644 --- a/devel/nspr/Makefile +++ b/devel/nspr/Makefile @@ -7,7 +7,7 @@ PORTNAME= nspr PORTVERSION= 4.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_MOZILLA} MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src diff --git a/devel/nspr/files/patch-nspr-unix.c b/devel/nspr/files/patch-nspr-unix.c new file mode 100644 index 000000000000..6bb4ed08fb40 --- /dev/null +++ b/devel/nspr/files/patch-nspr-unix.c @@ -0,0 +1,21 @@ +--- nsprpub/pr/src/md/unix/unix.c.orig Sat May 31 18:06:04 2003 ++++ nsprpub/pr/src/md/unix/unix.c Sat May 31 18:04:43 2003 +@@ -65,7 +65,8 @@ + * PRInt32* pointer to a _PRSockLen_t* pointer. + */ + #if defined(HAVE_SOCKLEN_T) \ +- || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) ++ || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \ ++ || defined(FREEBSD) + #define _PRSockLen_t socklen_t + #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \ + || defined(AIX4_1) || defined(LINUX) || defined(SONY) \ +@@ -73,7 +74,7 @@ + || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \ + || defined(NEXTSTEP) || defined(QNX) + #define _PRSockLen_t int +-#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \ ++#elif (defined(AIX) && !defined(AIX4_1)) \ + || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \ + || defined(DGUX) || defined(VMS) || defined(NTO) + #define _PRSockLen_t size_t |