GLog: Workaround compilation error on Hurd
[blender.git] / extern / glog / src / raw_logging.cc
index 7a7409bbf34b0bb3103fd33df76de0bf211ccc91..8517129fa81a64ffa5c438021349e17acb68c55b 100644 (file)
@@ -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?