diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:37 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:37 -0800 |
commit | 710a97992705d67c3ded0d4b270c5978ce29b11f (patch) | |
tree | ddcb2f7a91cbb86ce582e74227768b7b898c29e1 /findexec.c | |
parent | 50eb784bfcf15ee3c6b0b53d747db92673395040 (diff) | |
download | scm-710a97992705d67c3ded0d4b270c5978ce29b11f.tar.gz scm-710a97992705d67c3ded0d4b270c5978ce29b11f.zip |
Import Upstream version 5e4upstream/5e4
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 |