summaryrefslogtreecommitdiff
path: root/databases/openldap
diff options
context:
space:
mode:
authorryoon <ryoon>2014-07-18 11:25:14 +0000
committerryoon <ryoon>2014-07-18 11:25:14 +0000
commit4d734719c7012a439219ec5cbee2aac723065c5a (patch)
treed28a6c5b8b20e324cd3ed5d49777045463a50648 /databases/openldap
parent557d27527155c170e0da6c20ac613c3745ead93b (diff)
downloadpkgsrc-4d734719c7012a439219ec5cbee2aac723065c5a.tar.gz
Fix SCO OpenServer 5.0.7/3.2 build.
Diffstat (limited to 'databases/openldap')
-rw-r--r--databases/openldap/distinfo3
-rw-r--r--databases/openldap/patches/patch-libraries_libldap_os-local.c16
2 files changed, 18 insertions, 1 deletions
diff --git a/databases/openldap/distinfo b/databases/openldap/distinfo
index 4e5207e5515..d0eabb83e79 100644
--- a/databases/openldap/distinfo
+++ b/databases/openldap/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.95 2014/05/09 08:12:00 tron Exp $
+$NetBSD: distinfo,v 1.96 2014/07/18 11:31:25 ryoon Exp $
SHA1 (openldap-2.4.39.tgz) = 2b8e8401214867c361f7212e7058f95118b5bd6c
RMD160 (openldap-2.4.39.tgz) = da68043bd38e9d58811599d43bfdbc8f6c9b6f58
@@ -18,4 +18,5 @@ SHA1 (patch-contrib_slapd-modules_nops_slapo-nops.5) = f32352f19361b7e9aa5b038ae
SHA1 (patch-da) = 880b25a9266ee057f7269c5be46ef3c3fecf16b4
SHA1 (patch-dd) = 9c74118ff0b2232bda729c9917082fceef41dd16
SHA1 (patch-de) = be3833817205483b62cf3216b27f53a951621198
+SHA1 (patch-libraries_libldap_os-local.c) = 7cd4f8638456fae12499de0d36d7802e47d3d688
SHA1 (patch-libraries_librewrite_session.c) = e698d168556750ea790c563d439dd2fd8c87038e
diff --git a/databases/openldap/patches/patch-libraries_libldap_os-local.c b/databases/openldap/patches/patch-libraries_libldap_os-local.c
new file mode 100644
index 00000000000..c3beb920da0
--- /dev/null
+++ b/databases/openldap/patches/patch-libraries_libldap_os-local.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-libraries_libldap_os-local.c,v 1.1 2014/07/18 11:31:25 ryoon Exp $
+
+--- libraries/libldap/os-local.c.orig 2014-01-25 13:36:15.000000000 +0000
++++ libraries/libldap/os-local.c
+@@ -202,6 +202,11 @@ sendcred:
+ struct msghdr msg = {0};
+ # ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL
+ # ifndef CMSG_SPACE
++# if defined(_SCO_DS)
++/* SCO OpenServer 5.0.7/3.2 has no cmsg macros. */
++#define __ALIGNBYTES (sizeof(long) - 1)
++#define _CMSG_ALIGN(n) (((n) + __ALIGNBYTES) & ~__ALIGNBYTES)
++# endif
+ # define CMSG_SPACE(len) (_CMSG_ALIGN( sizeof(struct cmsghdr)) + _CMSG_ALIGN(len) )
+ # endif
+ # ifndef CMSG_LEN