Re: [PATCH] ext2fs: fix undeclared posix_memalign() warning

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

 



On Thu, Jun 09, 2011 at 11:17:16PM -0600, Andreas Dilger wrote:
> Older distros do not define posix_memalign() by default in the
> headers.  If ext2fs.h is included early in the headers, it is
> possible to "#define _XOPEN_SOURCE 600" so that the stdlib.h
> header will define it, but if ext2fs.h is included after stdlib.h
> there is no posix_memalign() declaration.
> 
> Add a posix_memalign() declaration if stdlib.h didn't do it.  This
> is a bit of a hack for GNU headers, but it works on Linux and OS/X
> without problems.
> 
> Signed-off-by: Andreas Dilger <adilger@xxxxxxxxxxxxx>

Applied into the next branch, thanks.

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux