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