diff --git a/FindLib/findlib/config.h b/FindLib/findlib/config.h index d6ccc37..e3f31ec 100644 --- a/FindLib/findlib/config.h +++ b/FindLib/findlib/config.h @@ -75,6 +75,10 @@ #define FS_IS_64BIT 0 #endif +/* Needed to get the proper code paths */ +#if __HAIKU__ + #define _POSIX_SOURCE +#endif #endif /* CONFIG_H */ diff --git a/FindLib/findlib/express.c b/FindLib/findlib/express.c index f216e8d..e616f69 100644 --- a/FindLib/findlib/express.c +++ b/FindLib/findlib/express.c @@ -19,6 +19,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "config.h" + #include #include #include @@ -27,7 +29,6 @@ #include #include -#include "config.h" #include "modechange.h" #include "defs.h" #include "modetype.h" diff --git a/etc/makefile.main b/etc/makefile.main index b551037..bc96257 100644 --- a/etc/makefile.main +++ b/etc/makefile.main @@ -19,7 +19,7 @@ FASTTRAX_DIR := FastTrax OPTIMIZER = -O3 CC := gcc -CFLAGS = $(OPTIMIZER) -Wall -Wno-multichar -Wno-ctor-dtor-privacy +CFLAGS = $(OPTIMIZER) -Wall -Wno-multichar -Wno-ctor-dtor-privacy -D__USE_GNU -DSTDC_HEADERS LD := gcc LDFLAGS :=