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:
@@ -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