]> granicus.if.org Git - neomutt/commitdiff
build: check for <syscall.h> too
authorRichard Russon <rich@flatcap.org>
Sat, 21 Sep 2019 15:20:31 +0000 (16:20 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 21 Sep 2019 16:55:08 +0000 (17:55 +0100)
auto.def
muttlib.c

index 9d75effeb574fcf70c55b9a7f4dad1504241be03..6366bac54b2c8c9b99befe224de1ef4aa6c33764 100644 (file)
--- a/auto.def
+++ b/auto.def
@@ -304,6 +304,7 @@ if {1} {
   cc-check-includes \
     ioctl.h \
     sys/ioctl.h \
+    syscall.h \
     sys/syscall.h \
     sysexits.h
 
index 48154fea723544aa4247123bd1e7b45c38c415e8..359845839a86bfbf7a289f0f8dcb0d5fbfce792c 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -59,7 +59,9 @@
 #include "mx.h"
 #include "ncrypt/ncrypt.h"
 #include "protos.h"
-#ifdef HAVE_SYS_SYSCALL_H
+#if defined(HAVE_SYSCALL_H)
+#include <syscall.h>
+#elif defined(HAVE_SYS_SYSCALL_H)
 #include <sys/syscall.h>
 #endif
 #ifdef USE_IMAP