Project

General

Profile

Bug #4490

struct timespec declared without defining HAVE_STRUCT_TIMESPEC, clashes with pthreads.

Added by Levon Saldamli over 5 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
ruby -v:
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
[ruby-core:<unknown>]

Description

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?

History

#1 [ruby-core:37467] Updated by Yui NARUSE about 5 years ago

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

#2 [ruby-core:51200] Updated by Nobuyoshi Nakada over 3 years ago

  • Status changed from Assigned to Rejected

mingw is not a pthread platform.

Also available in: Atom PDF