diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-06 14:04:05 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-06 14:04:05 +0000 |
commit | ee40e2386472d6cd05dd64a036a0395473f38554 (patch) | |
tree | cc9f152d04fa15a5add1308b742dd8ecceedf4f9 /io.c | |
parent | 9e31b97465f7c837456350904833bc425f53cdb2 (diff) | |
download | ruby-ee40e2386472d6cd05dd64a036a0395473f38554.tar.gz |
* configure.in (ac_cv_sizeof_rlim_t): setup for DJGPP.
* io.c (is_socket, shutdown): define dummy macros for DJGPP.
* process.c: use SIZEOF_RLIM_T instead of HAVE_RLIM_T for DJGPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -20,7 +20,7 @@ #include <errno.h> #include <sys/types.h> -#if !defined(_WIN32) +#if !defined(_WIN32) && !defined(__DJGPP__) # if defined(__BEOS__) # include <net/socket.h> # else @@ -139,6 +139,9 @@ static VALUE lineno = INT2FIX(0); #if defined(_WIN32) #define is_socket(fd, path) rb_w32_is_socket(fd) +#elif defined(__DJGPP__) +#define is_socket(fd, path) 0 +#define shutdown(a,b) 0 #else static int is_socket(fd, path) |