git: d746ab215cc8 - main - libbsddialog: Add _XOPEN_SOURCE_EXTENDED for widechar form

From: Alfonso S. Siciliano <asiciliano_at_FreeBSD.org>
Date: Sat, 05 Mar 2022 01:25:05 UTC
The branch main has been updated by asiciliano:

URL: https://cgit.FreeBSD.org/src/commit/?id=d746ab215cc85d8f7ab05c5f866c338782c390ec

commit d746ab215cc85d8f7ab05c5f866c338782c390ec
Author:     Alfonso S. Siciliano <asiciliano@FreeBSD.org>
AuthorDate: 2022-03-05 01:20:37 +0000
Commit:     Alfonso S. Siciliano <asiciliano@FreeBSD.org>
CommitDate: 2022-03-05 01:24:37 +0000

    libbsddialog: Add _XOPEN_SOURCE_EXTENDED for widechar form
    
    Add _XOPEN_SOURCE_EXTENDED to use curses' get_wch() and to avoid a
    building error after next "bsddialog 0.2" import.
    
    Approved by:            bapt (mentor)
    Differential Revision:  https://reviews.freebsd.org/D34419
---
 lib/libbsddialog/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libbsddialog/Makefile b/lib/libbsddialog/Makefile
index 95f8fad115a4..d5c03cb079ce 100644
--- a/lib/libbsddialog/Makefile
+++ b/lib/libbsddialog/Makefile
@@ -22,6 +22,7 @@ INCS=	bsddialog.h \
 MAN=	bsddialog.3
 
 LIBADD=	ncursesw tinfow formw
+CFLAGS+=	-D_XOPEN_SOURCE_EXTENDED
 
 WARNS=	2