GLog: Workaround compilation error on Hurd

There is syscall headers but no SYS_Write syscall.
This commit is contained in:
Sergey Sharybin
2016-11-22 12:43:59 +01:00
parent 4818b3c97e
commit cb694d6595

View 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?