$NetBSD: patch-nsgenbind_src_Makefile,v 1.2 2019/09/12 15:53:02 nros Exp $ Define _XOPEN_SOURCE needed for strdup(3) and strndup(3). --- nsgenbind/src/Makefile.orig 2019-07-17 15:37:01.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 output.c \