Show
Ignore:
Timestamp:
05/05/05 10:53:05 (4 years ago)
Author:
zoeloelip
Message:

This patch fixes some stuff concerning configuration. With this patch some parts that are forgotten with the
code split are fixed. They are also needed to compile eA with VC.
The other stuff make it possible to compile eA as a static module for php.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/mm.c

    r63 r73  
    11/* libmm replacement */ 
    22 
    3 #ifdef HAVE_CONFIG_H 
     3#if !defined(MM_TEST_SHM) && !defined(MM_TEST_SEM) 
     4# ifdef HAVE_CONFIG_H 
    45#  include "config.h" 
     6# endif 
     7# include "php.h" 
    58#endif 
    69 
     
    580583 
    581584#define MM_SHM_TYPE "sysvipc" 
     585 
     586#ifndef SHM_R 
     587# define SHM_R 0444 /* read permission */ 
     588#endif 
     589#ifndef SHM_W 
     590# define SHM_W 0222 /* write permission */ 
     591#endif 
    582592 
    583593static MM* mm_create_shm(const char* key, size_t size) {