Works on FreeBSD now.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@82 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+9
-2
@@ -73,8 +73,8 @@ AM_PATH_SMPEG($SMPEG_VERSION, , AC_MSG_ERROR([*** smpeg version $SMPEG_VERSION n
|
||||
AC_CHECK_LIB(SDL_mixer, main, , AC_MSG_ERROR([Your system is missing libSDL_mixer!]),`sdl-config --libs`)
|
||||
AC_CHECK_LIB(SDL_image, main, , AC_MSG_ERROR([Your system is missing libSDL_image!]),`sdl-config --libs`)
|
||||
AC_CHECK_LIB(smpeg, main, , AC_MSG_ERROR([Your system is missing libsmpeg!]),`smpeg-config --libs`)
|
||||
AC_CHECK_HEADERS(SDL/SDL_image.h, , AC_MSG_ERROR([Your system is missing SDL_image.h!]))
|
||||
AC_CHECK_HEADERS(SDL/SDL_mixer.h, , AC_MSG_ERROR([Your system is missing SDL_mixer.h!]))
|
||||
#AC_CHECK_HEADERS(SDL/SDL_image.h, , AC_MSG_ERROR([Your system is missing SDL_image.h!]))
|
||||
#AC_CHECK_HEADERS(SDL/SDL_mixer.h, , AC_MSG_ERROR([Your system is missing SDL_mixer.h!]))
|
||||
|
||||
# Select platform dependent OpenGL libs.. (tweak your platform here)
|
||||
case "$target" in
|
||||
@@ -91,6 +91,13 @@ case "$target" in
|
||||
*-*-darwin*)
|
||||
SYS_GL_LIBS=""
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
AC_PATH_X
|
||||
if test x$no_x != xyes; then
|
||||
CFLAGS="$CFLAGS -L $x_libraries"
|
||||
fi
|
||||
SYS_GL_LIBS="-lGL"
|
||||
;;
|
||||
*)
|
||||
if test x$have_x = xyes; then
|
||||
CFLAGS="$CFLAGS $X_CFLAGS"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -145,6 +145,7 @@ LoadDirEntryTable (PSTR pattern, PCOUNT pnum_entries)
|
||||
#include <unistd.h>
|
||||
#include <fnmatch.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
DIRENTRY_REF
|
||||
LoadDirEntryTable (PSTR pattern, PCOUNT pnum_entries)
|
||||
@@ -154,7 +155,7 @@ LoadDirEntryTable (PSTR pattern, PCOUNT pnum_entries)
|
||||
STRING_TABLEPTR lpST;
|
||||
PDWORD lpLastOffs;
|
||||
PSTR slash; // Pointer inside pattern to the last /
|
||||
SBYTE path[PATH_MAX + 1]; // buffer for a filename with path
|
||||
SBYTE path[MAXPATHLEN + 1]; // buffer for a filename with path
|
||||
PSTR file; // Pointer inside path to the filename
|
||||
size_t pathlen; // length of path, excluding last / and filename
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
#include "sdlthreads.h"
|
||||
|
||||
#if defined(PROFILE_THREADS) && !defined(WIN32)
|
||||
#include <sys/resource.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
#ifdef PROFILE_THREADS
|
||||
|
||||
Reference in New Issue
Block a user