[systemd-devel] [patch] #include src/shared/missing.h in src/shared/util.h for missing struct file_handle definition

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Aug 2 21:30:33 PDT 2014

On Fri, Aug 01, 2014 at 03:53:07PM +0100, Simon McVittie wrote:
> On 01/08/14 15:43, Samuli Suominen wrote:
> > Please, #include "missing.h" in src/shared/util.h to fix the build for
> > old systems w/ no system header defining
> > the struct
> The attached patch is what I'm using, and might be closer to correct,
> although I think to be fully portable (e.g. to Debian 7 with its
> original Linux 3.2) the inclusion of <linux/btrfs.h> might need to be
> wrapped in #ifdef HAVE_LINUX_BTRFS_H too. I haven't tried that
> configuration.
I applied your version of the patch, because it seems correct to
move compat stuff to missing.h. In subsequent commit I moved the
other define.


More information about the systemd-devel mailing list