Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Modules/_multiprocessing/multiprocessing.h

    r10 r391  
    33
    44#define PY_SSIZE_T_CLEAN
     5
     6#ifdef __sun
     7/* The control message API is only available on Solaris
     8   if XPG 4.2 or later is requested. */
     9#define _XOPEN_SOURCE 500
     10#endif
    511
    612#include "Python.h"
     
    1622#  include <windows.h>
    1723#  include <winsock2.h>
    18 #  include <process.h>               /* getpid() */
     24#  include <process.h>               /* getpid() */
    1925#  ifdef Py_DEBUG
    2026#    include <crtdbg.h>
     
    2834#  include <sys/uio.h>
    2935#  include <arpa/inet.h>             /* htonl() and ntohl() */
    30 #ifndef __EMX__
    31 #  if HAVE_SEM_OPEN
     36#ifndef __OS2__
     37#  if defined(HAVE_SEM_OPEN) && !defined(POSIX_SEMAPHORES_NOT_ENABLED)
    3238#    include <semaphore.h>
    3339     typedef sem_t *SEM_HANDLE;
     
    5056 */
    5157#ifndef SEM_VALUE_MAX
    52 #  ifdef _SEM_VALUE_MAX
    53 #    define SEM_VALUE_MAX _SEM_VALUE_MAX
    54 #  else
    55 #    define SEM_VALUE_MAX INT_MAX
    56 #  endif
     58    #if defined(HAVE_SYSCONF) && defined(_SC_SEM_VALUE_MAX)
     59        # define SEM_VALUE_MAX sysconf(_SC_SEM_VALUE_MAX)
     60    #elif defined(_SEM_VALUE_MAX)
     61        # define SEM_VALUE_MAX _SEM_VALUE_MAX
     62    #elif defined(_POSIX_SEM_VALUE_MAX)
     63        # define SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX
     64    #else
     65        # define SEM_VALUE_MAX INT_MAX
     66    #endif
    5767#endif
     68
    5869
    5970/*
     
    162173
    163174typedef struct {
    164         PyObject_HEAD
    165         HANDLE handle;
    166         int flags;
    167         PyObject *weakreflist;
    168         char buffer[CONNECTION_BUFFER_SIZE];
     175    PyObject_HEAD
     176    HANDLE handle;
     177    int flags;
     178    PyObject *weakreflist;
     179    char buffer[CONNECTION_BUFFER_SIZE];
    169180} ConnectionObject;
    170181
Note: See TracChangeset for help on using the changeset viewer.