On Thu, Feb 18, 2016 at 02:12:47PM +0100, Ruediger Meier wrote: > +#if defined __APPLE__ > +# define _DARWIN_C_SOURCE > +#endif > + > #include <stdio.h> > #include <stdarg.h> > #include <stdint.h> > @@ -62,6 +66,10 @@ > #define XALLOC_EXIT_CODE FSCK_EX_ERROR > #include "xalloc.h" > > +#if !defined MAP_ANONYMOUS && defined MAP_ANON > +# define MAP_ANONYMOUS (MAP_ANON) > +#endif What about to move this to include/c.h where we already have some portability ifdefs? Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html