From ff91113b81b599b9442dcd75c3608ca549397e93 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 29 Jun 2014 18:02:21 +0200 Subject: [PATCH] Added flock_type patch for MacOS --- src/build/compile.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/build/compile.sh b/src/build/compile.sh index 73ff91392..8cdfc18a1 100755 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -710,6 +710,10 @@ else sed 's:@PREFIX@:$DIR/bin/php5:' ./main/config.w32.h.in > ./wmain/config.w32.h 2>> "$DIR/install.log" fi +if [ "$(uname -s)" == "Darwin" ] && [ "$IS_CROSSCOMPILE" != "yes" ]; then + sed -i=".backup" 's/flock_type=unknown/flock_type=bsd/' ./configure +fi + RANLIB=$RANLIB ./configure $PHP_OPTIMIZATION --prefix="$DIR/bin/php5" \ --exec-prefix="$DIR/bin/php5" \ --with-curl="$HAVE_CURL" \