diff options
author | Andrew Krasavin <noiseless-ak@yandex.ru> | 2022-03-03 14:35:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 09:35:39 -0500 |
commit | dfc3fa9b5ae8b204ac83e3f06e4e8626f9bb2bc2 (patch) | |
tree | 83787b2537ca03dc384ec4878722f498da5e4e37 /absl/base/internal/raw_logging.cc | |
parent | 1dd160f9f091ac30fc83326306b96827ca32c3cd (diff) | |
download | abseil-dfc3fa9b5ae8b204ac83e3f06e4e8626f9bb2bc2.tar.gz abseil-dfc3fa9b5ae8b204ac83e3f06e4e8626f9bb2bc2.tar.bz2 abseil-dfc3fa9b5ae8b204ac83e3f06e4e8626f9bb2bc2.zip |
Some trivial OpenBSD-related fixes (#1113)
Diffstat (limited to 'absl/base/internal/raw_logging.cc')
-rw-r--r-- | absl/base/internal/raw_logging.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/absl/base/internal/raw_logging.cc b/absl/base/internal/raw_logging.cc index 074e026a..509d7460 100644 --- a/absl/base/internal/raw_logging.cc +++ b/absl/base/internal/raw_logging.cc @@ -36,8 +36,8 @@ // This preprocessor token is also defined in raw_io.cc. If you need to copy // this, consider moving both to config.h instead. #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ - defined(__Fuchsia__) || defined(__native_client__) || \ - defined(__EMSCRIPTEN__) || defined(__ASYLO__) + defined(__Fuchsia__) || defined(__native_client__) || \ + defined(__OpenBSD__) || defined(__EMSCRIPTEN__) || defined(__ASYLO__) #include <unistd.h> @@ -50,7 +50,8 @@ // ABSL_HAVE_SYSCALL_WRITE is defined when the platform provides the syscall // syscall(SYS_write, /*int*/ fd, /*char* */ buf, /*size_t*/ len); // for low level operations that want to avoid libc. -#if (defined(__linux__) || defined(__FreeBSD__)) && !defined(__ANDROID__) +#if (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && \ + !defined(__ANDROID__) #include <sys/syscall.h> #define ABSL_HAVE_SYSCALL_WRITE 1 #define ABSL_LOW_LEVEL_WRITE_SUPPORTED 1 |