Ticket #5980: MinGW-sched.h.patch

File MinGW-sched.h.patch, 489 bytes (added by Jonathan Martens <jonathan@…>, 15 years ago)
  • include/sched.h

    old new  
    124124typedef int pid_t;
    125125#endif
    126126
    127 /* Thread scheduling policies */
     127/* pid_t again! */
     128#if defined(__MINGW32__) || defined(_UWIN)
     129/* Define to `int' if <sys/types.h> does not define. */
     130/* GCC 4.x reportedly defines pid_t. */
     131#ifndef _PID_T_
     132#define pid_t int
     133#endif
     134#endif
    128135
     136/* Thread scheduling policies */
    129137enum {
    130138  SCHED_OTHER = 0,
    131139  SCHED_FIFO,