diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-22 14:43:59 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-22 14:43:59 +0300 |
commit | cb694d6595c78767874baf021096cc217858c85b (patch) | |
tree | 63a454449a94c41fa119fbf3c5dee8de65d6c31f | |
parent | 4818b3c97e371bca708961598433cef6ee9cb3fd (diff) |
GLog: Workaround compilation error on Hurd
There is syscall headers but no SYS_Write syscall.
-rw-r--r-- | extern/glog/src/raw_logging.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extern/glog/src/raw_logging.cc b/extern/glog/src/raw_logging.cc index 7a7409bbf34..8517129fa81 100644 --- a/extern/glog/src/raw_logging.cc +++ b/extern/glog/src/raw_logging.cc @@ -59,7 +59,8 @@ # include <unistd.h> #endif -#if defined(HAVE_SYSCALL_H) || defined(HAVE_SYS_SYSCALL_H) +// Hurd does not have SYS_write. +#if (defined(HAVE_SYSCALL_H) || defined(HAVE_SYS_SYSCALL_H)) && !defined(__GNU__) # define safe_write(fd, s, len) syscall(SYS_write, fd, s, len) #else // Not so safe, but what can you do? |