aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2020-10-31 17:18:48 +0600
committerZeex <zeex@rocketmail.com>2020-11-01 12:40:41 +0600
commit8d0b8a8d57804426dedf605d9e4a0848b1cd862f (patch)
tree57da74c2d6c8f7940d2cda919509555214938f0b
parent89f9730f2b90e12b52fb59589e02400999643b8c (diff)
downloadsubhook-8d0b8a8d57804426dedf605d9e4a0848b1cd862f.zip
subhook-8d0b8a8d57804426dedf605d9e4a0848b1cd862f.tar.gz
subhook-8d0b8a8d57804426dedf605d9e4a0848b1cd862f.tar.bz2
FreeBSD build support
-rw-r--r--.travis.yml2
-rw-r--r--subhook.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 41d0e4e..59fa62d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,7 @@ language: c
os:
- linux
- osx
+ - freebsd
env:
global:
- CTEST_OUTPUT_ON_FAILURE=ON
@@ -20,6 +21,7 @@ addons:
- yasm
before_install:
- if [ $TRAVIS_OS_NAME == osx ]; then brew install yasm; fi
+ - if [ $TRAVIS_OS_NAME == freebsd ]; then sudo pkg install -y yasm; fi
before_script:
- cmake . -DSUBHOOK_FORCE_32BIT=`([ $ARCH = x86 ] && echo 'ON') || echo 'OFF'`
diff --git a/subhook.h b/subhook.h
index f2fbc8b..d2f6814 100644
--- a/subhook.h
+++ b/subhook.h
@@ -41,11 +41,8 @@
#if defined _WIN32 || defined __CYGWIN__
#define SUBHOOK_WINDOWS
-#elif defined __linux__
- #define SUBHOOK_LINUX
- #define SUBHOOK_UNIX
-#elif defined __APPLE__
- #define SUBHOOK_MACOS
+#elif defined __linux__ || defined __APPLE__ \
+ || defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
#define SUBHOOK_UNIX
#else
#error Unsupported operating system