summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-14 02:03:41 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-14 02:03:41 +0000
commit11dad50e0dc3d628816b39b8f54ea979c8aa3d92 (patch)
treefe48a96272739ebce44fb9f1739891e70f57a14a /defines.h
parentdae0bfcf376fa0fb32fdde10587a8fb255cf1d00 (diff)
* defines.h: include <net/socket.h> to get fd_set definition in BeOS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 1cc9a6a9af..abfd53cc1c 100644
--- a/defines.h
+++ b/defines.h
@@ -188,6 +188,10 @@ typedef int pid_t;
#include "vms/vms.h"
#endif
+#if defined(__BEOS__)
+#include <net/socket.h> /* intern.h needs fd_set definition */
+#endif
+
#undef RUBY_EXTERN
#if defined _WIN32 && !defined __GNUC__
# ifndef RUBY_EXPORT
@@ -228,7 +232,7 @@ flush_register_windows(void)
# define FLUSH_REGISTER_WINDOWS flush_register_windows()
#else
# define FLUSH_REGISTER_WINDOWS ((void)0)
-#endif
+#endif
#if defined(DOSISH)
#define PATH_SEP ";"