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
5fe41aff
Commit
5fe41aff
authored
Dec 13, 2017
by
Daniel Ylitalo
Committed by
Derek Mauro
Dec 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FreeBSD compability (#57)
parent
04edad38
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
9 deletions
+15
-9
absl/base/config.h
+5
-3
absl/base/internal/endian.h
+2
-0
absl/base/internal/raw_logging.cc
+3
-2
absl/base/internal/sysinfo.cc
+1
-1
absl/debugging/internal/stacktrace_config.h
+2
-2
absl/debugging/internal/stacktrace_powerpc-inl.inc
+2
-1
No files found.
absl/base/config.h
View file @
5fe41aff
...
@@ -254,8 +254,9 @@
...
@@ -254,8 +254,9 @@
// POSIX.1-2001.
// POSIX.1-2001.
#ifdef ABSL_HAVE_MMAP
#ifdef ABSL_HAVE_MMAP
#error ABSL_HAVE_MMAP cannot be directly set
#error ABSL_HAVE_MMAP cannot be directly set
#elif defined(__linux__) || defined(__APPLE__) || defined(__ros__) || \
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
defined(__native_client__) || defined(__asmjs__) || defined(__Fuchsia__)
defined(__ros__) || defined(__native_client__) || defined(__asmjs__) || \
defined(__Fuchsia__)
#define ABSL_HAVE_MMAP 1
#define ABSL_HAVE_MMAP 1
#endif
#endif
...
@@ -265,7 +266,8 @@
...
@@ -265,7 +266,8 @@
// functions as defined in POSIX.1-2001.
// functions as defined in POSIX.1-2001.
#ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM
#ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM
#error ABSL_HAVE_PTHREAD_GETSCHEDPARAM cannot be directly set
#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
#define ABSL_HAVE_PTHREAD_GETSCHEDPARAM 1
#endif
#endif
...
...
absl/base/internal/endian.h
View file @
5fe41aff
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#elif defined(__APPLE__)
#elif defined(__APPLE__)
// Mac OS X / Darwin features
// Mac OS X / Darwin features
#include <libkern/OSByteOrder.h>
#include <libkern/OSByteOrder.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
#elif defined(__GLIBC__)
#elif defined(__GLIBC__)
#include <byteswap.h> // IWYU pragma: export
#include <byteswap.h> // IWYU pragma: export
#endif
#endif
...
...
absl/base/internal/raw_logging.cc
View file @
5fe41aff
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
//
//
// This preprocessor token is also defined in raw_io.cc. If you need to copy
// This preprocessor token is also defined in raw_io.cc. If you need to copy
// this, consider moving both to config.h instead.
// this, consider moving both to config.h instead.
#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__)
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
defined(__Fuchsia__)
#include <unistd.h>
#include <unistd.h>
...
@@ -47,7 +48,7 @@
...
@@ -47,7 +48,7 @@
// ABSL_HAVE_SYSCALL_WRITE is defined when the platform provides the syscall
// ABSL_HAVE_SYSCALL_WRITE is defined when the platform provides the syscall
// syscall(SYS_write, /*int*/ fd, /*char* */ buf, /*size_t*/ len);
// syscall(SYS_write, /*int*/ fd, /*char* */ buf, /*size_t*/ len);
// for low level operations that want to avoid libc.
// for low level operations that want to avoid libc.
#if
defined(__linux__
) && !defined(__ANDROID__)
#if
(defined(__linux__) || defined(__FreeBSD__)
) && !defined(__ANDROID__)
#include <sys/syscall.h>
#include <sys/syscall.h>
#define ABSL_HAVE_SYSCALL_WRITE 1
#define ABSL_HAVE_SYSCALL_WRITE 1
#define ABSL_LOW_LEVEL_WRITE_SUPPORTED 1
#define ABSL_LOW_LEVEL_WRITE_SUPPORTED 1
...
...
absl/base/internal/sysinfo.cc
View file @
5fe41aff
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <sys/syscall.h>
#include <sys/syscall.h>
#endif
#endif
#if
def __APPLE__
#if
defined(__APPLE__) || defined(__FreeBSD__)
#include <sys/sysctl.h>
#include <sys/sysctl.h>
#endif
#endif
...
...
absl/debugging/internal/stacktrace_config.h
View file @
5fe41aff
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
#if ABSL_STACKTRACE_INL_HEADER
#if ABSL_STACKTRACE_INL_HEADER
#error ABSL_STACKTRACE_INL_HEADER cannot be directly set
#error ABSL_STACKTRACE_INL_HEADER cannot be directly set
#elif defined(__native_client__) || defined(__APPLE__) || \
#elif defined(__native_client__) || defined(__APPLE__) || \
defined(__
ANDROID__) || defined(__myriad2__) || defined(asmjs
__) || \
defined(__
FreeBSD__) || defined(__ANDROID__) || defined(__myriad2
__) || \
defined(__Fuchsia__)
defined(
asmjs__) || defined(
__Fuchsia__)
#define ABSL_STACKTRACE_INL_HEADER \
#define ABSL_STACKTRACE_INL_HEADER \
"absl/debugging/internal/stacktrace_unimplemented-inl.inc"
"absl/debugging/internal/stacktrace_unimplemented-inl.inc"
...
...
absl/debugging/internal/stacktrace_powerpc-inl.inc
View file @
5fe41aff
...
@@ -47,7 +47,8 @@ static inline void *StacktracePowerPCGetLR(void **sp) {
...
@@ -47,7 +47,8 @@ static inline void *StacktracePowerPCGetLR(void **sp) {
return
*
(
sp
+
2
);
return
*
(
sp
+
2
);
#elif defined(_CALL_SYSV)
#elif defined(_CALL_SYSV)
return
*
(
sp
+
1
);
return
*
(
sp
+
1
);
#elif defined(__APPLE__) || (defined(__linux__) && defined(__PPC64__))
#elif defined(__APPLE__) || defined(__FreeBSD__) || \
(
defined
(
__linux__
)
&&
defined
(
__PPC64__
))
// This check is in case the compiler doesn't define _CALL_AIX/etc.
// This check is in case the compiler doesn't define _CALL_AIX/etc.
return
*
(
sp
+
2
);
return
*
(
sp
+
2
);
#elif defined(__linux)
#elif defined(__linux)
...
...
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