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:
meep-eep
2002-09-25 20:08:33 +00:00
parent 67e67ac5e5
commit 29e6dde0bd
5 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -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