[PATCH 11/11] xfsprogs: add dummy mremap for OS X

Jan Tulak
2015-08-26T12:02:57Z

Signed-off-by: Jan Tulak <jtulak@redhat.com>
---
include/darwin.h | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/include/darwin.h b/include/darwin.h
index d47c96c..2e16f65 100644
--- a/include/darwin.h
+++ b/include/darwin.h
@@ -33,6 +33,7 @@
#include <mach/mach_time.h>
#include <inttypes.h>
#include <stdio.h>
+#include <sys/mman.h>

#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
@@ -217,6 +218,14 @@ static inline int timer_gettime (timer_t timerid, struct itimerspec *value)
return getitimer(ITIMER_REAL, value);
}

+#define MREMAP_FIXED 1
+#define MREMAP_MAYMOVE 2
+static inline void *mremap(void *old_address, size_t old_size,
+ size_t new_size, int flags, ...)
+{
+ return MAP_FAILED;
+}
+
/* FSR */

//#define statvfs64 statfs
--
2.4.5