diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/missing.h | 2 | ||||
-rw-r--r-- | include/ruby/ruby.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index b16ce070c2..62d65b0aff 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -169,7 +169,7 @@ RUBY_EXTERN int signbit(double x); RUBY_EXTERN int ffs(int); #endif -#ifndef HAVE_CLOSE +#ifdef BROKEN_CLOSE #include <sys/types.h> #include <sys/socket.h> RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *); diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index f262e98442..83df1a3946 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1422,7 +1422,7 @@ int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap); #define snprintf ruby_snprintf #define vsnprintf ruby_vsnprintf -#ifdef __FreeBSD__ +#ifdef BROKEN_CLOSE #undef getpeername #define getpeername ruby_getpeername #undef getsockname |