Changeset 1186


Ignore:
Timestamp:
2012-12-06T12:47:52+01:00 (22 months ago)
Author:
moo
Message:

use correct header for getpid()

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1178 r1186  
    2525#include "ext/standard/md5.h" 
    2626#ifdef ZEND_ENGINE_2_1 
    27 #include "ext/date/php_date.h" 
     27#   include "ext/date/php_date.h" 
     28#endif 
     29#ifdef ZEND_WIN32 
     30#   include <process.h> 
    2831#endif 
    2932#include "ext/standard/php_math.h" 
     
    34683471        xc_initized = 1; 
    34693472        xc_init_time = time(NULL); 
    3470 #ifdef PHP_WIN32 
    3471         xc_init_instance_id = GetCurrentProcessId(); 
    3472 #else 
    34733473        xc_init_instance_id = getpid(); 
    3474 #endif 
    34753474#ifdef ZTS 
    34763475        xc_init_instance_subid = tsrm_thread_id(); 
  • trunk/xcache/xc_lock.c

    r1154 r1186  
    44#include <string.h> 
    55#include <stdlib.h> 
     6#ifdef ZEND_WIN32 
     7#   include <process.h> 
     8#endif 
    69 
    710#ifndef ZEND_WIN32 
Note: See TracChangeset for help on using the changeset viewer.