mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 14:28:22 +00:00
apply leveldb cygwin patch from http://code.google.com/p/leveldb/issues/detail?id=188
This commit is contained in:
parent
85be748663
commit
440525ebaa
@ -68,6 +68,12 @@ if [ "$CXX" = "g++" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case "$TARGET_OS" in
|
case "$TARGET_OS" in
|
||||||
|
CYGWIN_*)
|
||||||
|
PLATFORM=OS_LINUX
|
||||||
|
COMMON_FLAGS="$MEMCMP_FLAG -lpthread -DOS_LINUX -DCYGWIN"
|
||||||
|
PLATFORM_LDFLAGS="-lpthread"
|
||||||
|
PORT_FILE=port/port_posix.cc
|
||||||
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
PLATFORM=OS_MACOSX
|
PLATFORM=OS_MACOSX
|
||||||
COMMON_FLAGS="$MEMCMP_FLAG -DOS_MACOSX"
|
COMMON_FLAGS="$MEMCMP_FLAG -DOS_MACOSX"
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
#if defined(OS_MACOSX) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
|
#if defined(OS_MACOSX) || defined(OS_SOLARIS) || defined(OS_FREEBSD) ||\
|
||||||
defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD) ||\
|
defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_DRAGONFLYBSD) ||\
|
||||||
defined(OS_ANDROID) || defined(OS_HPUX)
|
defined(OS_ANDROID) || defined(OS_HPUX) || defined(CYGWIN)
|
||||||
// Use fread/fwrite/fflush on platforms without _unlocked variants
|
// Use fread/fwrite/fflush on platforms without _unlocked variants
|
||||||
#define fread_unlocked fread
|
#define fread_unlocked fread
|
||||||
#define fwrite_unlocked fwrite
|
#define fwrite_unlocked fwrite
|
||||||
|
Loading…
Reference in New Issue
Block a user