Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2023 10:27:07 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f4c28b489119 - main - x11/wmenu: Fix build with llvm16
Message-ID:  <202309031027.383AR77g097359@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f4c28b489119fb134e7873047aea1aa643219d70

commit f4c28b489119fb134e7873047aea1aa643219d70
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-02 12:15:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-03 10:26:53 +0000

    x11/wmenu: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 x11/wmenu/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/x11/wmenu/Makefile b/x11/wmenu/Makefile
index 8764a8ffe766..277d9948eef3 100644
--- a/x11/wmenu/Makefile
+++ b/x11/wmenu/Makefile
@@ -29,4 +29,10 @@ LDFLAGS+=	`pkg-config --libs epoll-shim`
 PLIST_FILES=	bin/wmenu \
 		man/man1/wmenu.1.gz
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097
+CFLAGS+=	-D__BSD_VISIBLE -D__XSI_VISIBLE
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202309031027.383AR77g097359>