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

Henrik Grindal Bakken hgb at ifi.uio.no
Wed Apr 17 09:09:42 PDT 2013


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.


-- 
Henrik Grindal Bakken <hgb at ifi.uio.no>
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963  02AF 9236 D25A 8D43 6E52


More information about the systemd-devel mailing list