mirror of
https://github.com/adulau/dcfldd.git
synced 2024-12-22 16:56:03 +00:00
error.h is not portable
MacOS doesn't include error.h. Check if __APPLE__ is defined.
This commit is contained in:
parent
001827209c
commit
91f563da98
1 changed files with 3 additions and 1 deletions
2
util.c
2
util.c
|
@ -41,7 +41,9 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#if !defined(__APPLE__)
|
||||||
#include <error.h>
|
#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)
|
||||||
|
|
Loading…
Reference in a new issue