diff options
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -21,6 +21,7 @@ #include <stdio.h> #include <sys/param.h> #include <sys/file.h> +#include <sys/stat.h> #ifdef HAVE_STDLIB_H # include <stdlib.h> @@ -28,6 +29,10 @@ char *getenv(); #endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif + #if defined (HAVE_STRING_H) # include <string.h> #else /* !HAVE_STRING_H */ @@ -1017,6 +1022,14 @@ dln_strerror() } # endif + +void +dln_perror(str) + char *str; +{ + fprintf(stderr, "%s: %s\n", str, dln_strerror()); +} + #endif /* USE_DL */ static char *dln_find_1(); @@ -1150,10 +1163,3 @@ dln_find_1(fname, path, exe_flag) /* otherwise try the next component in the search path */ } } - -void -dln_perror(str) - char *str; -{ - fprintf(stderr, "%s: %s\n", str, dln_strerror()); -} |