diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
commit | c7d035ae1a729232579a0fe41ed5affa131d3623 (patch) | |
tree | fb387f7c2a8e01cf603d4c75fbbaa68f711df986 /findexec.c | |
parent | deda2c0fd8689349fea2a900199a76ff7ecb319e (diff) | |
download | scm-c7d035ae1a729232579a0fe41ed5affa131d3623.tar.gz scm-c7d035ae1a729232579a0fe41ed5affa131d3623.zip |
Import Upstream version 5d9upstream/5d9
Diffstat (limited to 'findexec.c')
-rw-r--r-- | findexec.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -16,13 +16,13 @@ Fri Sep 14 22:16:14 1990 Edgar Roeder (edgar at megamaster) dld_find_executable so that users may specify a special path for object modules. -Thu Feb 3 01:46:16 1994 Aubrey Jaffer (jaffer@jacal) +Thu Feb 3 01:46:16 1994 Aubrey Jaffer * find_exec.c (dld_find_executable): added stat check for linux so that it doesn't think directories with the same name as the program are executable. -Wed Feb 21 23:06:35 1996 Aubrey Jaffer <jaffer@jacal.bertronics> +Wed Feb 21 23:06:35 1996 Aubrey Jaffer * find_exec.c: extracted for general use. Generalized to MS-DOS. */ @@ -83,6 +83,10 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer <jaffer@jacal.bertronics> # include <sys/types.h> # include <sys/stat.h> # endif +# ifdef __NetBSD__ +# include <stdlib.h> +# include <unistd.h> +# endif # ifdef __OpenBSD__ /* This might be same for 44bsd derived system. */ # include <stdlib.h> |