$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 \