Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
dfc3fa9b
Unverified
Commit
dfc3fa9b
authored
Mar 03, 2022
by
Andrew Krasavin
Committed by
GitHub
Mar 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some trivial OpenBSD-related fixes (#1113)
parent
1dd160f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
absl/base/config.h
+2
-2
absl/base/internal/raw_logging.cc
+4
-3
absl/debugging/internal/elf_mem_image.h
+2
-2
No files found.
absl/base/config.h
View file @
dfc3fa9b
...
...
@@ -414,7 +414,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
defined(_AIX) || defined(__ros__) || defined(__native_client__) || \
defined(__asmjs__) || defined(__wasm__) || defined(__Fuchsia__) || \
defined(__sun) || defined(__ASYLO__) || defined(__myriad2__) || \
defined(__HAIKU__)
defined(__HAIKU__)
|| defined(__OpenBSD__)
#define ABSL_HAVE_MMAP 1
#endif
...
...
@@ -425,7 +425,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
#ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM
#error ABSL_HAVE_PTHREAD_GETSCHEDPARAM cannot be directly set
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
defined(_AIX) || defined(__ros__)
defined(_AIX) || defined(__ros__)
|| defined(__OpenBSD__)
#define ABSL_HAVE_PTHREAD_GETSCHEDPARAM 1
#endif
...
...
absl/base/internal/raw_logging.cc
View file @
dfc3fa9b
...
...
@@ -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
...
...
absl/debugging/internal/elf_mem_image.h
View file @
dfc3fa9b
...
...
@@ -31,8 +31,8 @@
#error ABSL_HAVE_ELF_MEM_IMAGE cannot be directly set
#endif
#if defined(__ELF__) && !defined(__
native_client__) && !defined(__asmjs
__) && \
!defined(__wasm__)
#if defined(__ELF__) && !defined(__
OpenBSD
__) && \
!defined(__
native_client__) && !defined(__asmjs__) && !defined(__
wasm__)
#define ABSL_HAVE_ELF_MEM_IMAGE 1
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment