Changeset 4149


Ignore:
Timestamp:
Dec 13, 2007, 3:24:35 PM (15 years ago)
Author:
charles
Message:

backport the pthread mutex compile error to the 0.9x branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/libtransmission/platform.c

    r4045 r4149  
    2323 *****************************************************************************/
    2424
     25#ifdef __BEOS__
     26  #include <signal.h>
     27  #include <fs_info.h>
     28  #include <FindDirectory.h>
     29  #include <kernel/OS.h>
     30  #define BEOS_MAX_THREADS 256
     31#elif defined(WIN32)
     32  #include <windows.h>
     33  #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_PROFILE */
     34#else
     35  #define _XOPEN_SOURCE 500 /* needed for recursive locks. */
     36  #ifndef __USE_UNIX98
     37  #define __USE_UNIX98 /* some older Linuxes need it spelt out for them */
     38  #endif
     39  #include <pthread.h>
     40#endif
     41
    2542#include <assert.h>
    2643#include <errno.h>
     
    2845#include <stdlib.h>
    2946#include <string.h>
    30 
    31 #ifdef __BEOS__
    32   #include <signal.h>
    33   #include <fs_info.h>
    34   #include <FindDirectory.h>
    35   #include <kernel/OS.h>
    36   #define BEOS_MAX_THREADS 256
    37 #elif defined(WIN32)
    38   #include <windows.h>
    39   #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_PROFILE */
    40 #else
    41   #define _XOPEN_SOURCE 500 /* needed for recursive locks. */
    42   #ifndef __USE_UNIX98
    43   #define __USE_UNIX98 /* some older Linuxes need it spelt out for them */
    44   #endif
    45   #include <pthread.h>
    46 #endif
    4747
    4848#include <sys/types.h>
Note: See TracChangeset for help on using the changeset viewer.