Issue #4490 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Assigned to Rejected

mingw is not a pthread platform.
----------------------------------------
Bug #4490: struct timespec declared without defining HAVE_STRUCT_TIMESPEC, clashes with pthreads.
https://bugs.ruby-lang.org/issues/4490#change-35157

Author: levsa (Levon Saldamli)
Status: Rejected
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: 
ruby -v: ruby 1.9.2p136 (2010-12-25) [i386-mingw32]


pthreads wants to declare struct timespec again since HAVE_STRUCT_TIMESPEC is not defined. After adding the following to ./include/ruby-1.9.1/ruby/missing.h problem is solved.

  #if !defined(HAVE_STRUCT_TIMESPEC)
+ #define HAVE_STRUCT_TIMESPEC
  struct timespec {

Perhaps the same should be done for struct timezone?



-- 
http://bugs.ruby-lang.org/