11 #ifndef RUBY_MISSING_H
12 #define RUBY_MISSING_H 1
14 #if defined(__cplusplus)
21 #include "ruby/config.h"
24 #include RUBY_EXTCONF_H
27 #if !defined(HAVE_STRUCT_TIMEVAL) || !defined(HAVE_STRUCT_TIMESPEC)
28 #if defined(HAVE_TIME_H)
31 #if defined(HAVE_SYS_TIME_H)
32 # include <sys/time.h>
36 #if !defined(HAVE_STRUCT_TIMEVAL)
43 #if !defined(HAVE_STRUCT_TIMESPEC)
50 #if !defined(HAVE_STRUCT_TIMEZONE)
61 #define RUBY_EXTERN extern
64 #if defined __GNUC__ && __GNUC__ >= 4
65 #pragma GCC visibility push(default)
117 #ifndef HAVE_LGAMMA_R
126 # define HAVE_INFINITY
130 # define INFINITY (*(float *)rb_infinity)
138 # define NAN (*(float *)rb_nan)
143 # if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
144 # ifdef HAVE_IEEEFP_H
147 # define isinf(x) (!finite(x) && !isnan(x))
181 #ifndef HAVE_STRERROR
212 #include <sys/types.h>
213 #include <sys/socket.h>
220 #ifndef HAVE_SETPROCTITLE
224 #if defined __GNUC__ && __GNUC__ >= 4
225 #pragma GCC visibility pop
228 #if defined(__cplusplus)