os x fixes

This commit is contained in:
Bradley Bell 2002-07-26 21:48:05 +00:00
parent 8d90c91704
commit 6dcd5057e0
2 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,8 @@ int FileFindFirst(char *search_str, FILEFINDSTRUCT *ffstruct)
r = glob(search_str, 0, NULL, &glob_a);
if (r) return 1;
if (! glob_a.gl_pathc) return 1;
glob_whichfile = 0;
t = strrchr(glob_a.gl_pathv[glob_whichfile], '/');

View file

@ -46,6 +46,9 @@ typedef uint16_t u_int16_t;
# include <sys/types.h>
# define _MAX_PATH 1024
# define _MAX_DIR 256
#ifdef __MACOSX__
typedef unsigned long ulong;
#endif
#elif defined __DJGPP__
# include <sys/types.h>