[systemd-devel] PATCH: add missing header include
Lennart Poettering
lennart at poettering.net
Thu Aug 18 16:27:59 PDT 2011
On Thu, 18.08.11 16:18, Frederic Crozat (fcrozat at suse.com) wrote:
> Le jeudi 18 août 2011 à 16:00 +0200, Lennart Poettering a écrit :
> > On Thu, 18.08.11 15:50, Frederic Crozat (fcrozat at suse.com) wrote:
> >
> > > Hi,
> > >
> > > MS_REC is not always defined in sys/mount.h. linux/fs.h should be
> > > included, since it is always defined there.
> >
> > Not always? Can you be more specific please? Which version of glibc is that?
>
> Well, I haven't found it on glibc 2.11.3, shipped in latest openSUSE (it
> was added by Ulrich in 02/2010, see
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=11235 ie for glib
> 2.12).
>
> Another solution could be to add it to missing.h.
>
> I wasn't sure which one was best, since namespace.c is including
> linux/fs.h, because of MS_REC and MS_MS_UNBINDABLE.
I merged your first patch, looks fine.
I was just curious whether this was some compatibility hack for a
non-glibc libc. usually my recommendation for those is to ask the libc
to be fixed, not systemd...
Thanks for the patch,
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list