Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-11-22 14:43:59 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-11-22 14:43:59 +0300
commitcb694d6595c78767874baf021096cc217858c85b (patch)
tree63a454449a94c41fa119fbf3c5dee8de65d6c31f /extern/glog
parent4818b3c97e371bca708961598433cef6ee9cb3fd (diff)
GLog: Workaround compilation error on Hurd
There is syscall headers but no SYS_Write syscall.
Diffstat (limited to 'extern/glog')
-rw-r--r--extern/glog/src/raw_logging.cc3
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?