diff options
author | delphij <delphij@FreeBSD.org> | 2011-03-21 20:36:12 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-03-21 20:36:12 +0800 |
commit | 3fb41401633aeb5eacee7245732cc206eaa2870b (patch) | |
tree | 41b6b9b0a58e0f5e2210eac77900a3d96f45182f /net | |
parent | 1cd61ec9af46baf7088891cb89f1c5776daeeb60 (diff) | |
download | freebsd-ports-gnome-3fb41401633aeb5eacee7245732cc206eaa2870b.tar.gz freebsd-ports-gnome-3fb41401633aeb5eacee7245732cc206eaa2870b.tar.zst freebsd-ports-gnome-3fb41401633aeb5eacee7245732cc206eaa2870b.zip |
Add a patch from OpenLDAP ITS 6832 to fix build when the user uses a custom
GCC version.
PORTREVISION intentionally not bumped because this does not affect compiled
binary.
PR: ports/155743
Submitted by: mm
Diffstat (limited to 'net')
-rw-r--r-- | net/openldap24-server/files/patch-its-6832 | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/net/openldap24-server/files/patch-its-6832 b/net/openldap24-server/files/patch-its-6832 new file mode 100644 index 000000000000..af5b02dd8749 --- /dev/null +++ b/net/openldap24-server/files/patch-its-6832 @@ -0,0 +1,68 @@ +Index: libraries/liblber/nt_err.c +=================================================================== +RCS file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/nt_err.c,v +retrieving revision 1.20 +retrieving revision 1.21 +diff -u -r1.20 -r1.21 +--- libraries/liblber/nt_err.c 4 Jan 2011 23:43:01 -0000 1.20 ++++ libraries/liblber/nt_err.c 16 Feb 2011 23:36:30 -0000 1.21 +@@ -17,7 +17,7 @@ + + #ifdef HAVE_WINSOCK2 + #include <winsock2.h> +-#elif HAVE_WINSOCK ++#elif defined(HAVE_WINSOCK) + #include <winsock.h> + #endif /* HAVE_WINSOCK(2) */ + +Index: libraries/libldap/init.c +=================================================================== +RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap/init.c,v +retrieving revision 1.128 +retrieving revision 1.129 +diff -u -r1.128 -r1.129 +--- libraries/libldap/init.c 11 Jan 2011 20:34:55 -0000 1.128 ++++ libraries/libldap/init.c 16 Feb 2011 23:36:30 -0000 1.129 +@@ -626,7 +626,7 @@ + return; + } + } /* The WinSock DLL is acceptable. Proceed. */ +-#elif HAVE_WINSOCK ++#elif defined(HAVE_WINSOCK) + { WSADATA wsaData; + if ( WSAStartup( 0x0101, &wsaData ) != 0 ) { + return; +Index: libraries/liblutil/detach.c +=================================================================== +RCS file: /repo/OpenLDAP/pkg/ldap/libraries/liblutil/detach.c,v +retrieving revision 1.24 +retrieving revision 1.25 +diff -u -r1.24 -r1.25 +--- libraries/liblutil/detach.c 4 Jan 2011 23:43:09 -0000 1.24 ++++ libraries/liblutil/detach.c 16 Feb 2011 23:36:31 -0000 1.25 +@@ -128,7 +128,7 @@ + + #ifdef HAVE_SETSID + (void) setsid(); +-#elif TIOCNOTTY ++#elif defined(TIOCNOTTY) + if ( (sd = open( "/dev/tty", O_RDWR )) != -1 ) { + (void) ioctl( sd, TIOCNOTTY, NULL ); + (void) close( sd ); +Index: libraries/liblutil/entropy.c +=================================================================== +RCS file: /repo/OpenLDAP/pkg/ldap/libraries/liblutil/entropy.c,v +retrieving revision 1.34 +retrieving revision 1.35 +diff -u -r1.34 -r1.35 +--- libraries/liblutil/entropy.c 4 Jan 2011 23:43:09 -0000 1.34 ++++ libraries/liblutil/entropy.c 16 Feb 2011 23:36:31 -0000 1.35 +@@ -73,7 +73,7 @@ + close(fd); + return nbytes > 0 ? -1 : 0; + } +-#elif PROV_RSA_FULL ++#elif defined(PROV_RSA_FULL) + { + /* Not used since _WIN32_WINNT not set... */ + HCRYPTPROV hProv = 0; |