From: Ted Ts'o <tytso@mit.edu>
To: Andreas Dilger <adilger@whamcloud.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext2fs: fix undeclared posix_memalign() warning
Date: Sat, 11 Jun 2011 11:05:14 -0400 [thread overview]
Message-ID: <20110611150514.GC11207@thunk.org> (raw)
In-Reply-To: <1307683036-4564-1-git-send-email-adilger@whamcloud.com>
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@whamcloud.com>
Applied into the next branch, thanks.
- Ted
prev parent reply other threads:[~2011-06-11 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-10 5:17 [PATCH] ext2fs: fix undeclared posix_memalign() warning Andreas Dilger
2011-06-11 15:05 ` Ted Ts'o [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110611150514.GC11207@thunk.org \
--to=tytso@mit.edu \
--cc=adilger@whamcloud.com \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).