Skip to content

Commit

Permalink
Define these so the correct code paths are used.
Browse files Browse the repository at this point in the history
Made sure config.h gets included first.
  • Loading branch information
OscarL committed Sep 14, 2023
1 parent ad0cd36 commit 0e1ae3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions FindLib/findlib/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
3 changes: 2 additions & 1 deletion FindLib/findlib/express.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include "config.h"

#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
Expand All @@ -27,7 +29,6 @@
#include <ctype.h>
#include <regex.h>

#include "config.h"
#include "modechange.h"
#include "defs.h"
#include "modetype.h"
Expand Down
2 changes: 1 addition & 1 deletion etc/makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -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 :=
Expand Down

0 comments on commit 0e1ae3c

Please sign in to comment.