diff options
Diffstat (limited to 'src/surface')
-rw-r--r-- | src/surface/Makefile | 10 | ||||
-rw-r--r-- | src/surface/x.c | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/surface/Makefile b/src/surface/Makefile index 3abbfb6..6eddcb6 100644 --- a/src/surface/Makefile +++ b/src/surface/Makefile @@ -1,4 +1,12 @@ # Sources -DIR_SOURCES := surface.c sdl.c vnc.c able.c ram.c linux.c x.c +DIR_SOURCES := surface.c vnc.c able.c ram.c linux.c + +ifeq ($(NSFB_SDL_AVAILABLE),yes) + DIR_SOURCES := $(DIR_SOURCES) sdl.c +endif + +ifeq ($(NSFB_XCB_AVAILABLE),yes) + DIR_SOURCES := $(DIR_SOURCES) x.c +endif include build/makefiles/Makefile.subdir diff --git a/src/surface/x.c b/src/surface/x.c index 2b8d3bf..a8c06ee 100644 --- a/src/surface/x.c +++ b/src/surface/x.c @@ -7,7 +7,6 @@ */ #define _XOPEN_SOURCE 500 -#define NEED_HINTS_ALLOC #include <stdbool.h> #include <stdlib.h> |