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:
parent
aab112dd24
commit
319563bf31
7 changed files with 12 additions and 6 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue