Files
pkgsrc-ng/www/netsurf/patches/patch-nsgenbind_src_Makefile
2016-11-18 22:39:22 +01:00

13 lines
442 B
Plaintext

$NetBSD: patch-nsgenbind_src_Makefile,v 1.1 2016/03/04 01:28:02 leot Exp $
Define _XOPEN_SOURCE needed for strdup(3) and strndup(3).
--- nsgenbind/src/Makefile.orig 2016-02-16 18:10:55.000000000 +0000
+++ nsgenbind/src/Makefile
@@ -1,4 +1,5 @@
CFLAGS := $(CFLAGS) -I$(BUILDDIR) -Isrc/ -g -DYYENABLE_NLS=0
+CFLAGS += -D_XOPEN_SOURCE=700
# Sources in this directory
DIR_SOURCES := nsgenbind.c utils.c webidl-ast.c nsgenbind-ast.c ir.c \