1
0
Fork 0

fix for fbsd

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@36 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 2006-05-27 10:37:10 +00:00
parent 8f690d8883
commit bfc0063576
5 changed files with 17 additions and 5 deletions

View File

@ -18,7 +18,7 @@ $(XCACHE_PROC_OUT): $(XCACHE_PROC_SRC) $(XCACHE_STRUCTINFO_OUT) $(XCACHE_PROC_SO
mv -f $(XCACHE_PROC_OUT).tmp $(XCACHE_PROC_OUT)
$(XCACHE_PROC_H): $(XCACHE_PROC_OUT)
$(GREP) -F 'export: ' $(XCACHE_PROC_OUT) | $(SED) -r 's/.*export:(.*):export.*/\1/g' | $(XCACHE_INDENT) > $(XCACHE_PROC_H).tmp
$(GREP) -F 'export: ' $(XCACHE_PROC_OUT) | $(SED) 's/.*export:\(.*\):export.*/\1/g' | $(XCACHE_INDENT) > $(XCACHE_PROC_H).tmp
mv -f $(XCACHE_PROC_H).tmp $(XCACHE_PROC_H)
$(XCACHE_PROC_C): $(XCACHE_PROC_OUT) $(XCACHE_PROC_H)

View File

@ -1,5 +1,6 @@
#ifndef __ALIGN_H
#define __ALIGN_H
#ifndef ALIGN
typedef union align_union {
double d;
void *v;
@ -14,5 +15,5 @@ typedef union align_union {
#endif
#define ALIGN(n) ((((size_t)(n)-1) & ~(XCACHE_PLATFORM_ALIGNMENT-1)) + XCACHE_PLATFORM_ALIGNMENT)
#endif
#endif /* __ALIGN_H */

View File

@ -61,7 +61,19 @@ if test "$PHP_XCACHE" != "no"; then
AC_PATH_PROGS([INDENT], [indent cat])
case $INDENT in
*/indent[)]
XCACHE_INDENT="$INDENT -kr --use-tabs --tab-size 4 -sob -nce"
opts="-kr --use-tabs --tab-size 4 -sob -nce"
if echo | $INDENT $opts > /dev/null 2>&1 ; then
XCACHE_INDENT="$INDENT $opts"
else
opts="-sob -nce"
if echo | $INDENT $opts > /dev/null 2>&1 ; then
XCACHE_INDENT="$INDENT $opts"
else
if echo | $INDENT > /dev/null 2>&1 ; then
XCACHE_INDENT="$INDENT"
fi
fi
fi
;;
*[)]
XCACHE_INDENT=cat

2
lock.c
View File

@ -1,6 +1,6 @@
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <php.h>
#ifndef ZEND_WIN32

View File

@ -6,7 +6,6 @@
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <signal.h>
#include "php.h"