mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
xterm: Add _GNU_SOURCE via CFLAGS
This ensures that definitions of functions e.g. ptsname and wcwidth are added correctly. Fixes | ./main.c:2940:8: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] | char *name = ptsname(*pty); | ^ ~~~~~~~~~~~~~ | ./util.c:5506:19: error: use of undeclared identifier 'wcwidth' | my_wcwidth = wcwidth; | ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -27,6 +27,8 @@ EXTRA_OECONF = " --x-includes=${STAGING_INCDIR} \
|
||||
|
||||
B = "${S}"
|
||||
|
||||
CFLAGS += "-D_GNU_SOURCE"
|
||||
|
||||
do_configure() {
|
||||
gnu-configize --force
|
||||
sed -e "s%/usr/contrib/X11R6%${STAGING_LIBDIR}%g" -i configure
|
||||
|
||||
Reference in New Issue
Block a user