diff options
author | ryoon <ryoon> | 2014-07-18 11:25:14 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2014-07-18 11:25:14 +0000 |
commit | 4d734719c7012a439219ec5cbee2aac723065c5a (patch) | |
tree | d28a6c5b8b20e324cd3ed5d49777045463a50648 /databases/openldap/patches | |
parent | 557d27527155c170e0da6c20ac613c3745ead93b (diff) | |
download | pkgsrc-4d734719c7012a439219ec5cbee2aac723065c5a.tar.gz |
Fix SCO OpenServer 5.0.7/3.2 build.
Diffstat (limited to 'databases/openldap/patches')
-rw-r--r-- | databases/openldap/patches/patch-libraries_libldap_os-local.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 |