error.h is not portable

MacOS doesn't include error.h. Check if __APPLE__ is defined.
This commit is contained in:
Alexandre Dulaunoy 2013-02-23 10:15:40 +01:00
parent 001827209c
commit 91f563da98

4
util.c
View file

@ -41,7 +41,9 @@
#include "config.h" #include "config.h"
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <error.h> #if !defined(__APPLE__)
#include <error.h>
#endif /* __APPLE__ */
#include "safe-read.h" #include "safe-read.h"
int buggy_lseek_support(int fdesc) int buggy_lseek_support(int fdesc)