diff options
author | Daniel Ylitalo <daniel@ylitalo.io> | 2017-12-13T20·02+0100 |
---|---|---|
committer | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2017-12-13T20·02-0500 |
commit | 5fe41affbaab5b9ad4876a6295c78f21a86d862d (patch) | |
tree | d6cb31cf0deb80dc295e6fae0b287d482ac4a947 /absl/base/config.h | |
parent | 04edad3801ec0b1091df9157b879d8f6a50c5036 (diff) |
FreeBSD compability (#57)
Diffstat (limited to 'absl/base/config.h')
-rw-r--r-- | absl/base/config.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/absl/base/config.h b/absl/base/config.h index 6aeceb9b0616..fc48be0b8fc1 100644 --- a/absl/base/config.h +++ b/absl/base/config.h @@ -254,8 +254,9 @@ // POSIX.1-2001. #ifdef ABSL_HAVE_MMAP #error ABSL_HAVE_MMAP cannot be directly set -#elif defined(__linux__) || defined(__APPLE__) || defined(__ros__) || \ - defined(__native_client__) || defined(__asmjs__) || defined(__Fuchsia__) +#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ + defined(__ros__) || defined(__native_client__) || defined(__asmjs__) || \ + defined(__Fuchsia__) #define ABSL_HAVE_MMAP 1 #endif @@ -265,7 +266,8 @@ // functions as defined in POSIX.1-2001. #ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM #error ABSL_HAVE_PTHREAD_GETSCHEDPARAM cannot be directly set -#elif defined(__linux__) || defined(__APPLE__) || defined(__ros__) +#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ + defined(__ros__) #define ABSL_HAVE_PTHREAD_GETSCHEDPARAM 1 #endif |