Bug #4490

struct timespec declared without defining HAVE_STRUCT_TIMESPEC, clashes with pthreads.

Added by Levon Saldamli about 3 years ago. Updated over 1 year ago.

[ruby-core:<unknown>]
Status:Rejected
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:-
Target version:-
ruby -v:ruby 1.9.2p136 (2010-12-25) [i386-mingw32] Backport:

Description

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

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

Perhaps the same should be done for struct timezone?

History

#1 Updated by Yui NARUSE almost 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Nobuyoshi Nakada

#2 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Assigned to Rejected

mingw is not a pthread platform.

Also available in: Atom PDF