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

2
util.c
View file

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