aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/build_detect_platform
diff options
context:
space:
mode:
authorVaclav Vobornik <[email protected]>2013-06-12 14:46:16 +0200
committerVaclav Vobornik <[email protected]>2013-06-12 14:46:16 +0200
commit1d626952f9fac57b8febec6bfad14b059b4184d8 (patch)
treefaae6e585152992a35af9032ec5340f4372d0506 /src/leveldb/build_detect_platform
parentMerge pull request #2553 from Diapolo/threads (diff)
downloaddiscoin-1d626952f9fac57b8febec6bfad14b059b4184d8.tar.xz
discoin-1d626952f9fac57b8febec6bfad14b059b4184d8.zip
Added GNU/kFreeBSD kernel name (TARGET_OS)
uname -s returns "GNU/kFreeBSD" on Debian GNU/kFreeBSD port. See http://www.debian.org/ports/kfreebsd-gnu/
Diffstat (limited to 'src/leveldb/build_detect_platform')
-rwxr-xr-xsrc/leveldb/build_detect_platform6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leveldb/build_detect_platform b/src/leveldb/build_detect_platform
index 609cb5122..a3ad057ee 100755
--- a/src/leveldb/build_detect_platform
+++ b/src/leveldb/build_detect_platform
@@ -94,6 +94,12 @@ case "$TARGET_OS" in
PLATFORM_LIBS="-lpthread"
PORT_FILE=port/port_posix.cc
;;
+ GNU/kFreeBSD)
+ PLATFORM=OS_KFREEBSD
+ COMMON_FLAGS="$MEMCMP_FLAG -D_REENTRANT -DOS_KFREEBSD"
+ PLATFORM_LIBS="-lpthread"
+ PORT_FILE=port/port_posix.cc
+ ;;
NetBSD)
PLATFORM=OS_NETBSD
COMMON_FLAGS="$MEMCMP_FLAG -D_REENTRANT -DOS_NETBSD"