mirror of
https://github.com/gperftools/gperftools
synced 2024-12-21 23:09:57 +00:00
don't do syscall on osx
Their compiler barks and we only need this syscall business on FreeBSD.
This commit is contained in:
parent
bdae3615ca
commit
86867674f0
@ -56,7 +56,7 @@
|
|||||||
// do logging on a best-effort basis.
|
// do logging on a best-effort basis.
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define WRITE_TO_STDERR(buf, len) WriteToStderr(buf, len); // in port.cc
|
#define WRITE_TO_STDERR(buf, len) WriteToStderr(buf, len); // in port.cc
|
||||||
#elif defined(HAVE_SYS_SYSCALL_H)
|
#elif defined(HAVE_SYS_SYSCALL_H) && !defined(__APPLE__)
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#define WRITE_TO_STDERR(buf, len) syscall(SYS_write, STDERR_FILENO, buf, len)
|
#define WRITE_TO_STDERR(buf, len) syscall(SYS_write, STDERR_FILENO, buf, len)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user