summaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 19:44:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 19:44:42 +0000
commitd3a2ceef4b1dded7b773293124958405543566a9 (patch)
tree754107a5cf69600b9f9e2e218425e9ad8a497a63 /ext/socket/socket.c
parent165fd32e5949847abf417524e927f33fd7523459 (diff)
downloadruby-d3a2ceef4b1dded7b773293124958405543566a9.tar.gz
ruby-d3a2ceef4b1dded7b773293124958405543566a9.tar.xz
ruby-d3a2ceef4b1dded7b773293124958405543566a9.zip
* ext/socket/extconf.rb: check arpa/inet.h for ntohs.
* ext/socket/socket.c: include arpa/inet.h if available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index b4f44c924..89569f9a0 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -42,6 +42,9 @@
#ifdef HAVE_NETINET_UDP_H
# include <netinet/udp.h>
#endif
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
#include <netdb.h>
#endif
#include <errno.h>