]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Enable building zstd on Haiku. 1330/head
authorJerome Duval <jerome.duval@gmail.com>
Sun, 6 Aug 2017 20:27:54 +0000 (22:27 +0200)
committerJerome Duval <jerome.duval@gmail.com>
Wed, 3 Oct 2018 07:51:56 +0000 (09:51 +0200)
Makefile
lib/Makefile
programs/Makefile
programs/platform.h

index a17900450f44139d3e5039bd0ff5bd87b9f390f4..0ad44a679468a7f257028ac41b037e9e9ff1cb01 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,7 @@ clean:
 #------------------------------------------------------------------------------
 # make install is validated only for Linux, macOS, Hurd and some BSD targets
 #------------------------------------------------------------------------------
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT))
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT Haiku))
 
 HOST_OS = POSIX
 CMAKE_PARAMS = -DZSTD_BUILD_CONTRIB:BOOL=ON -DZSTD_BUILD_STATIC:BOOL=ON -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_ZLIB_SUPPORT:BOOL=ON -DZSTD_LZMA_SUPPORT:BOOL=ON -DCMAKE_BUILD_TYPE=Release
index cf8e45b0f0523a0a5ea51438ec504083f749ccc0..f3948f2ddfd508a6c5e79acdbc8b0f5777fe151e 100644 (file)
@@ -157,7 +157,7 @@ clean:
 #-----------------------------------------------------------------------------
 # make install is validated only for Linux, macOS, BSD, Hurd and Solaris targets
 #-----------------------------------------------------------------------------
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku))
 
 DESTDIR     ?=
 # directory variables : GNU conventions prefer lowercase
index f1a96325cbf7af8fb6251855e40cde99c0473f71..5bbc82758c448d60550874e25e0150d7a73611a6 100644 (file)
@@ -258,7 +258,7 @@ preview-man: clean-man man
 #-----------------------------------------------------------------------------
 # make install is validated only for Linux, macOS, BSD, Hurd and Solaris targets
 #-----------------------------------------------------------------------------
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku))
 
 .PHONY: list
 list:
index 89eba37ec4b318d162a96e869ab83db2c4e135f0..aa19ee12ff44f655fbbaac6323bfc3a36a6f8112 100644 (file)
@@ -70,9 +70,10 @@ extern "C" {
 *  PLATFORM_POSIX_VERSION >= 1 is equal to found _POSIX_VERSION
 ***************************************************************/
 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)) /* UNIX-like OS */ \
-   || defined(__midipix__) || defined(__VMS))
+   || defined(__midipix__) || defined(__VMS) || defined(__HAIKU__))
 #  if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */ \
-     || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)  /* BSD distros */
+     || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)  /* BSD distros */ \
+     || defined(__HAIKU__)
 #    define PLATFORM_POSIX_VERSION 200112L
 #  else
 #    if defined(__linux__) || defined(__linux)