1diff --git a/vobcopy.h b/vobcopy.h
2index dcf4266..d34c2b4 100644
3--- a/vobcopy.h
4+++ b/vobcopy.h
5@@ -115,6 +115,7 @@ typedef enum { FALSE=0, TRUE=1 } bool;
6
7 #ifdef HAVE_SYS_STATVFS_H
8 #include <sys/statvfs.h>
9+#ifndef __APPLE__
10 #ifndef USE_STATFS
11 #define USE_STATVFS
12 #ifndef USE_STATFS_FOR_DEV
13@@ -122,6 +123,7 @@ typedef enum { FALSE=0, TRUE=1 } bool;
14 #endif
15 #endif
16 #endif
17+#endif
18
19 #ifdef HAVE_MNTENT_H
20 #include <mntent.h>
21@@ -164,6 +166,6 @@ char *safestrncpy(char *dest, const char *src, size_t n);
22 int check_progress( void ); /* this can be removed because the one below supersedes it */
23 int progressUpdate( int starttime, int cur, int tot, int force );
24
25-#ifndef HAVE_FDATASYNC
26+#if !defined(HAVE_FDATASYNC) || defined(__APPLE__)
27 #define fdatasync(fd) 0
28 #endif