summaryrefslogtreecommitdiffstats
path: root/findexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'findexec.c')
-rw-r--r--findexec.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/findexec.c b/findexec.c
index 9769ef5..8edc6fc 100644
--- a/findexec.c
+++ b/findexec.c
@@ -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