diff options
author | Yukihiro Matsumoto <matz@ruby-lang.org> | 1995-04-05 11:35:21 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-17 22:09:32 +0900 |
commit | 11e21a36bc935088f88a7cd1548f8c74c3bf6099 (patch) | |
tree | 250c579beedb2a35708b0cea682bbad2280bdfd0 /dln.c | |
parent | 4e65eab7abf53838579600e3dcc99a43012c45c2 (diff) |
version 0.72v0_72
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.71-0.72.diff.gz
Wed Apr 5 11:35:21 1995 Yukihiro Matsumoto (matz@ix-02)
* version 0.72
* EWS4800対応
* file.c: utimesがない時はutimeを使うように.
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()); -} |