From 6dcd5057e034b288338f0fab8f7b34e93b28acdb Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 26 Jul 2002 21:48:05 +0000 Subject: [PATCH] os x fixes --- arch/linux/findfile.c | 2 ++ include/pstypes.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/linux/findfile.c b/arch/linux/findfile.c index abeb97d4..9c94b670 100644 --- a/arch/linux/findfile.c +++ b/arch/linux/findfile.c @@ -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], '/'); diff --git a/include/pstypes.h b/include/pstypes.h index 3140783f..c240a0a0 100644 --- a/include/pstypes.h +++ b/include/pstypes.h @@ -46,6 +46,9 @@ typedef uint16_t u_int16_t; # include # define _MAX_PATH 1024 # define _MAX_DIR 256 +#ifdef __MACOSX__ +typedef unsigned long ulong; +#endif #elif defined __DJGPP__ # include -- 2.39.2