summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/depend2
-rw-r--r--ext/socket/extconf.rb2
-rw-r--r--ext/socket/rubysocket.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/ext/socket/depend b/ext/socket/depend
index f870b9f..81e4b4f 100644
--- a/ext/socket/depend
+++ b/ext/socket/depend
@@ -1,6 +1,6 @@
SOCK_HEADERS = $(srcdir)/rubysocket.h $(hdrdir)/ruby/ruby.h $(arch_hdrdir)/ruby/config.h \
$(hdrdir)/ruby/defines.h $(hdrdir)/ruby/io.h \
- $(srcdir)/addrinfo.h $(srcdir)/sockport.h constdefs.h
+ $(srcdir)/addrinfo.h $(srcdir)/sockport.h constdefs.h $(topdir)/internal.h
init.o: init.c $(SOCK_HEADERS)
constants.o: constants.c constdefs.c $(SOCK_HEADERS)
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index dbce2ba..24ab7ea 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -1,5 +1,7 @@
require 'mkmf'
+$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
+
case RUBY_PLATFORM
when /(ms|bcc)win(32|64)|mingw/
test_func = "WSACleanup"
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index a80c93e..d7be138 100644
--- a/ext/socket/rubysocket.h
+++ b/ext/socket/rubysocket.h
@@ -4,6 +4,7 @@
#include "ruby/ruby.h"
#include "ruby/io.h"
#include "ruby/util.h"
+#include "internal.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>