diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake index e929101f7bf4188f67cc180d52f1de2225434d92..578b61fba64e900585251e1ed9c8f5715ae0650f 100644 --- a/src/xpdev/Common.gmake +++ b/src/xpdev/Common.gmake @@ -57,7 +57,8 @@ ifndef win XPDEV-MT_CFLAGS += -DHAS_MACHINE_SPKR_H XPDEV_CFLAGS += -DHAS_MACHINE_SPKR_H endif - XPDEV-MT_CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi) -I. $(XPDEV_CFLAGS) + XPDEV-MT_CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi) + XPDEV_CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi) endif # FreeBSD, OpenBSD, NetBSD, Linux, SunOS, and Darwin all have random()/srandom() diff --git a/src/xpdev/GNUmakefile b/src/xpdev/GNUmakefile index ae38daff5eec6faaf190f254b6a63e86a71d1295..9788fbbc7a284fef9e62aea7f25a34577577b164 100644 --- a/src/xpdev/GNUmakefile +++ b/src/xpdev/GNUmakefile @@ -15,6 +15,7 @@ ifndef NO_PULSEAUDIO endif endif +CFLAGS += -I. $(XPDEV_CFLAGS) ifndef WITHOUT_ALSA_SOUND ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES) CFLAGS += -DUSE_ALSA_SOUND