diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2018-03-02 22:34:53 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2018-03-02 22:34:53 +0000 |
commit | 16a06ea40221c2bb23799b052867383d27bdff4e (patch) | |
tree | 74598255802a1be780cec8e6fed3805dd3777ae6 /mail/sendmail | |
parent | 327f701df5048adf449318a745a10fc6ce80ca9a (diff) | |
download | freebsd-ports-16a06ea40221c2bb23799b052867383d27bdff4e.zip |
Work around the lack of definition of union semun per POSIX.
When feasible do this by adding -D_WANT_SEMUN to CFLAGS or CXXFLAGS.
Where this fails due to ports not honoring C*FLAGS, patch using
__FreeBSD_version to enable the definition.
PR: 224300, 224443 (exp-run)
Approved by: portmgr (antoine)
Exp-run: antoine
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14137
Diffstat (limited to 'mail/sendmail')
-rw-r--r-- | mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h b/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h new file mode 100644 index 000000000000..427c6d1c3a15 --- /dev/null +++ b/mail/sendmail/files/patch-include_sm_os_sm__os__freebsd.h @@ -0,0 +1,14 @@ +--- include/sm/os/sm_os_freebsd.h.orig ++++ include/sm/os/sm_os_freebsd.h +@@ -34,7 +34,11 @@ + # define SM_CONF_SHM 1 + #endif /* SM_CONF_SHM */ + #ifndef SM_CONF_SEM ++#if __FreeBSD_version < 1200059 + # define SM_CONF_SEM 1 ++#else ++# define SM_CONF_SEM 2 ++#endif + #endif /* SM_CONF_SEM */ + #ifndef SM_CONF_MSG + # define SM_CONF_MSG 1 |