Project

General

Profile

Actions

Bug #4490

closed

struct timespec declared without defining HAVE_STRUCT_TIMESPEC, clashes with pthreads.

Added by levsa (Levon Saldamli) about 13 years ago. Updated over 11 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
Backport:
[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?

Updated by naruse (Yui NARUSE) almost 13 years ago

  • Status changed from Open to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

  • Status changed from Assigned to Rejected

mingw is not a pthread platform.

Actions

Also available in: Atom PDF

Like0
Like0Like0