diff --git a/src/xpdev/Common.gmake b/src/xpdev/Common.gmake
index 78b08e6dfec89c78a63bdd99e681ce85c4ff1185..6631ce658c93d0e9ba0884ddbd490beae4b5ae5e 100644
--- a/src/xpdev/Common.gmake
+++ b/src/xpdev/Common.gmake
@@ -137,3 +137,4 @@ else
  endif
 endif
 
+XPDEV-MT_CFLAGS	+=	-I$(X_HEADERS)
diff --git a/src/xpdev/GNUmakefile b/src/xpdev/GNUmakefile
index c8bf7f17bb5e1dd62ff5c896a87b14e0882c3c8b..8329b17ced073225b43afecd95572261c584b01d 100644
--- a/src/xpdev/GNUmakefile
+++ b/src/xpdev/GNUmakefile
@@ -12,7 +12,6 @@ ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
 endif
 MT_CFLAGS	+=	$(XPDEV-MT_CFLAGS)
 
-MT_CFLAGS	+=	-I$(X_HEADERS)
 ifdef WITH_SDL
  MTOBJS	+=	$(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE)
 endif