summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-06 14:04:05 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-06 14:04:05 +0000
commitee40e2386472d6cd05dd64a036a0395473f38554 (patch)
treecc9f152d04fa15a5add1308b742dd8ecceedf4f9 /io.c
parent9e31b97465f7c837456350904833bc425f53cdb2 (diff)
* 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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4bb3e368c4..1a721ef946 100644
--- a/io.c
+++ b/io.c
@@ -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)