summaryrefslogtreecommitdiff
path: root/ext/socket/getnameinfo.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-19 11:44:29 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-19 11:44:29 +0000
commitffffc0ce7d21756729f3b2690e39a4f2ff6300f4 (patch)
tree2d0c9cbbe80e8bd4f0e610577d2011f3e0df712c /ext/socket/getnameinfo.c
parente569adce47b97c12e3cae67efd76121fa5a0c437 (diff)
* ext/socket/getnameinfo.c: need to include extconf.h for HAVE_* macros.
reported by Kenta Murata <mrkn AT mrkn.jp> via IRC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/getnameinfo.c')
-rw-r--r--ext/socket/getnameinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c
index 689b91c..62a14ac 100644
--- a/ext/socket/getnameinfo.c
+++ b/ext/socket/getnameinfo.c
@@ -35,6 +35,9 @@
*/
#include "ruby/config.h"
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef _WIN32