Bug #2587 ยป check-timezone-struct-avoid-redefinition.patch
configure.in | ||
---|---|---|
@%:@include <time.h>
|
||
@%:@endif])
|
||
AC_CHECK_TYPES([struct timezone], [], [], [@%:@ifdef HAVE_TIME_H
|
||
@%:@include <time.h>
|
||
@%:@endif])
|
||
AC_CHECK_TYPE(fd_mask, [AC_DEFINE(HAVE_RB_FD_INIT, 1)])
|
||
dnl RUBY_DEFINT TYPENAME, SIZE, [SIGNED-OR-UNSIGNED], [INCLUDES = DEFAULT-INCLUDES]
|
include/ruby/win32.h | ||
---|---|---|
#define strncasecmp _strnicmp
|
||
#define fsync _commit
|
||
#ifdef __MINGW32__
|
||
#if !defined(HAVE_STRUCT_TIMEZONE)
|
||
struct timezone {
|
||
int tz_minuteswest;
|
||
int tz_dsttime;
|
||
};
|
||
#endif
|
||
#if defined(__MINGW32__)
|
||
#undef isascii
|
||
#define isascii __isascii
|
||
#endif
|