On Wed, 17.04.13 18:12, Kay Sievers (k...@vrfy.org) wrote: > > On Wed, Apr 17, 2013 at 6:09 PM, Henrik Grindal Bakken <h...@ifi.uio.no> > wrote: > > Kay Sievers <k...@vrfy.org> writes: > > > >> On Wed, Apr 17, 2013 at 5:49 PM, Henrik Grindal Bakken <h...@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. > :)
Well, our current usage of aligned_alloc() is not even calling it correctly... We really should sotp using that. Let's use memalign() everywhere. Lennart -- Lennart Poettering - Red Hat, Inc. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel