We need _GNU_SOURCE when compiling for Linux in enough places. Just
move it to the LNXCFLAGS definition in the Makefiles.
CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -D__COM32__ -W -Wall -march=i386 -Os -fomit-frame-pointer -I./include -I../include
SFLAGS = $(M32) -D__COM32__ -march=i386
LDFLAGS = -T ../lib/com32.ld
-LNXCFLAGS = -I./include -W -Wall -O -g
+LNXCFLAGS = -I./include -W -Wall -O -g -D_GNU_SOURCE
LNXSFLAGS = -g
LNXLDFLAGS = -g
OBJCOPY = objcopy
NASMOPT = -O9999
RANLIB = ranlib
CFLAGS = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
-LNXCFLAGS = -W -Wall -O -g -I../libutil/include
+LNXCFLAGS = -W -Wall -O -g -I../libutil/include -D_GNU_SOURCE
LNXSFLAGS = -g
LNXLDFLAGS = -g
SFLAGS = -D__COM32__ -march=i386
* a command line and/or edit it.
*/
-#define _GNU_SOURCE /* Needed for asprintf() on Linux */
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
*
* ----------------------------------------------------------------------- */
-#define _GNU_SOURCE /* Needed for asprintf() on Linux */
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
*
* ----------------------------------------------------------------------- */
-#define _GNU_SOURCE /* Needed for asprintf() on Linux */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>