[systemd-devel] [PATCH] bus: Use memalign() if aligned_alloc() isn't available

Kay Sievers kay at vrfy.org
Wed Apr 17 09:12:55 PDT 2013


On Wed, Apr 17, 2013 at 6:09 PM, Henrik Grindal Bakken <hgb at ifi.uio.no> wrote:
> Kay Sievers <kay at vrfy.org> writes:
>
>> On Wed, Apr 17, 2013 at 5:49 PM, Henrik Grindal Bakken <hgb at ifi.uio.no> wrote:
>>> Use <features.h> and _GNU_SOURCE to determine if _ISOC11_SOURCE is
>>> available, and with that, aligned_alloc().
>>
>> Can't you just define the missing function in missing.h to the one we
>> use, instead of directly blowing up the code with compat stuff and
>> ifdefs?
>
> Sure I can.  Didn't know about missing.h.  Will fix.

Yeah, the idea of missing.h is to make stuff look like it is there. We
usually just decide on one option, and cover older stuff from there.
:)

Thanks,
Kay


More information about the systemd-devel mailing list