diff options
author | tnn <tnn@pkgsrc.org> | 2022-08-22 19:46:47 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-08-22 19:46:47 +0000 |
commit | d6b72f6429e28ebd911a77cb622b7b2acd8d72d0 (patch) | |
tree | 8c6a41bb14c7fa4099cfda455ac4b785ae0283c3 /x11 | |
parent | 7c7ed3d922ec4df1bda2c8ea5f901fb90bf80dea (diff) | |
download | pkgsrc-d6b72f6429e28ebd911a77cb622b7b2acd8d72d0.tar.gz |
xnotify: set -D_XOPEN_SOURCE=500 on SunOS
This is needed so that "#define SEC 1" from <sys/time.h> is hidden by
#if !defined(__XOPEN_OR_POSIX).
Else it conflicts with enum ItemOption value SEC from the package.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xnotify/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11/xnotify/Makefile b/x11/xnotify/Makefile index affbcc1e3ce..b0569dec74d 100644 --- a/x11/xnotify/Makefile +++ b/x11/xnotify/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2022/02/25 09:18:56 pin Exp $ +# $NetBSD: Makefile,v 1.7 2022/08/22 19:46:47 tnn Exp $ DISTNAME= xnotify-0.8.1 CATEGORIES= x11 @@ -25,6 +25,8 @@ SUBST_SED.configmk+= -e 's/cc/${CC:Q}/' INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 +CFLAGS.SunOS+= -D_XOPEN_SOURCE=500 + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xnotify ${DESTDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/xnotify.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 |