Browse Source

use correct header for getpid()

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1186 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
e8600bb8e2
  1. 9
      mod_cacher/xc_cacher.c
  2. 3
      xcache/xc_lock.c

9
mod_cacher/xc_cacher.c

@ -24,7 +24,10 @@
#include "ext/standard/info.h"
#include "ext/standard/md5.h"
#ifdef ZEND_ENGINE_2_1
#include "ext/date/php_date.h"
# include "ext/date/php_date.h"
#endif
#ifdef ZEND_WIN32
# include <process.h>
#endif
#include "ext/standard/php_math.h"
#include "SAPI.h"
@ -3467,11 +3470,7 @@ static int xc_cacher_zend_startup(zend_extension *extension) /* {{{ */
}
xc_initized = 1;
xc_init_time = time(NULL);
#ifdef PHP_WIN32
xc_init_instance_id = GetCurrentProcessId();
#else
xc_init_instance_id = getpid();
#endif
#ifdef ZTS
xc_init_instance_subid = tsrm_thread_id();
#endif

3
xcache/xc_lock.c

@ -3,6 +3,9 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef ZEND_WIN32
# include <process.h>
#endif
#ifndef ZEND_WIN32
typedef int HANDLE;

Loading…
Cancel
Save