Re: [PATCH 07/15] include: provide MAP_ANONYMOUS on OSX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux