equal
deleted
inserted
replaced
151 |
151 |
152 #if defined(SYSV4) && defined(__i386__) /* e.g. unixware */ |
152 #if defined(SYSV4) && defined(__i386__) /* e.g. unixware */ |
153 # define WANT_SYSTEM |
153 # define WANT_SYSTEM |
154 #endif |
154 #endif |
155 |
155 |
156 #if defined __osx__ |
156 #if defined (__osx__) |
157 # define NET_IF_SUPPORT |
157 # define NET_IF_SUPPORT |
158 #endif |
158 #endif |
159 |
159 |
160 /* |
160 /* |
161 * notice: although many systems' include files |
161 * notice: although many systems' include files |
282 # define _SYS_SELECT_H_INCLUDED_ |
282 # define _SYS_SELECT_H_INCLUDED_ |
283 # endif |
283 # endif |
284 # endif /* aix */ |
284 # endif /* aix */ |
285 |
285 |
286 # ifdef __osx__ |
286 # ifdef __osx__ |
|
287 # include <string.h> |
287 # include <time.h> |
288 # include <time.h> |
|
289 # include <sys/time.h> |
288 # define HAS_TIMEGM |
290 # define HAS_TIMEGM |
289 |
291 |
|
292 # define NO_LONGER_NEEDED |
290 # ifdef NO_LONGER_NEEDED |
293 # ifdef NO_LONGER_NEEDED |
291 // struct tm seems to be defined now (new XCODE/CLANG compiler) |
294 // struct tm seems to be defined now (new XCODE/CLANG compiler) |
292 struct tm { |
295 struct tm { |
293 int tm_sec; /* seconds after the minute [0-60] */ |
296 int tm_sec; /* seconds after the minute [0-60] */ |
294 int tm_min; /* minutes after the hour [0-59] */ |
297 int tm_min; /* minutes after the hour [0-59] */ |
4136 |
4139 |
4137 %{ |
4140 %{ |
4138 // macosx does not support syncfs |
4141 // macosx does not support syncfs |
4139 // ... and we need to be compatible with GLIBC 2.12 (RedHat 6) |
4142 // ... and we need to be compatible with GLIBC 2.12 (RedHat 6) |
4140 // so disable it for now. |
4143 // so disable it for now. |
4141 #if 0 && defined(LINUX) && __GLIBC_PREREQ(2, 14) |
4144 #if 0 |
|
4145 # if defined(LINUX) |
|
4146 # if __GLIBC_PREREQ(2, 14) |
4142 if (__isSmallInteger(handle)) { |
4147 if (__isSmallInteger(handle)) { |
4143 if (syncfs(__intVal(handle)) == 0) { |
4148 if (syncfs(__intVal(handle)) == 0) { |
4144 RETURN(self); |
4149 RETURN(self); |
4145 } |
4150 } |
4146 } |
4151 } |
|
4152 # endif |
|
4153 # endif |
4147 #endif |
4154 #endif |
4148 %}. |
4155 %}. |
4149 |
4156 |
4150 "fallback is to do a global sync" |
4157 "fallback is to do a global sync" |
4151 self sync. |
4158 self sync. |