diff options
Diffstat (limited to 'findexec.c')
-rw-r--r-- | findexec.c | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -43,6 +43,7 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer # include <sys/param.h> # endif # ifdef linux +# include <string.h> # include <stdlib.h> # include <sys/stat.h> # include <unistd.h> /* for X_OK define */ @@ -63,7 +64,7 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer # include <u.h> # include <libc.h> # define getcwd getwd -# define MAXPATHLEN 256 /* arbitrary? */ +# define MAXPATHLEN 256 /* arbitrary? */ # define X_OK AEXEC # else # include <strings.h> @@ -80,18 +81,30 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer # endif # ifdef __FreeBSD__ /* This might be same for 44bsd derived system. */ -# include <sys/types.h> +# include <stdlib.h> +# include <string.h> +# include <unistd.h> +# include <sys/stat.h> +# endif +# ifdef __DragonflyBSD__ +/* This might be same for 44bsd derived system. */ +# include <stdlib.h> +# include <string.h> +# include <unistd.h> # include <sys/stat.h> # endif # ifdef __NetBSD__ # include <stdlib.h> +# include <string.h> # include <unistd.h> +# include <sys/stat.h> # endif # ifdef __OpenBSD__ /* This might be same for 44bsd derived system. */ # include <stdlib.h> # include <unistd.h> -# include <sys/types.h> +# include <string.h> +/* # include <sys/types.h> */ # include <sys/stat.h> # endif # ifdef __alpha |