Do not include sys/syscall.h if not available

Some platforms do not provide sys/syscall.h. The configure script already
checks for the existance of the file. Include sys/syscall.h only in case
HAVE_SYS_SYSCALL_H has been set.
This commit is contained in:
David Engraf 2021-11-18 14:08:35 +01:00
parent aab112dd24
commit 319563bf31
7 changed files with 12 additions and 6 deletions

View file

@ -13,7 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#ifdef __linux__
#ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h>
#endif
#include "c.h"