fix for fbsd
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@36 c26eb9a1-5813-0410-bd6c-c2e55f420ca71.1
parent
8f690d8883
commit
bfc0063576
|
@ -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)
|
||||
|
|
3
align.h
3
align.h
|
@ -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 */
|
||||
|
|
14
config.m4
14
config.m4
|
@ -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
2
lock.c
|
@ -1,6 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <php.h>
|
||||
#ifndef ZEND_WIN32
|
||||
|
|
Loading…
Reference in New Issue