Fix Haiku build.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2015-02-23 19:33:41 +00:00
parent 67d3636512
commit 6a225eb4ed
2 changed files with 3 additions and 2 deletions

View File

@ -203,8 +203,7 @@ endif
LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT) LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT)
CC = gcc CC = gcc
#Append the gcc kind to the objdir (gcc2 or gcc4) to avoid conflicts when switching from one to other. #Append the gcc kind to the objdir (gcc2 or gcc4) to avoid conflicts when switching from one to other.
OBJKIND = $(lastword $(shell setgcc)) OBJDIR = ../obj/haiku
OBJDIR = ../obj/haiku/$(OBJKIND)
ZIP = zip ZIP = zip
else else

View File

@ -43,6 +43,8 @@
#elif defined(__linux__) #elif defined(__linux__)
#include <limits.h> #include <limits.h>
#include <unistd.h> #include <unistd.h>
#elif defined(__HAIKU__)
#include <FindDirectory.h>
#endif #endif
#include "struct.h" #include "struct.h"