2010/10/9 Dan Williams <[email protected]>

> On Fri, 2010-10-08 at 17:21 +0800, cee1 wrote:
> > Hi all,
> >
> >
> > I've checked out a source of 0.8.2-beta1, try to compile it, and
> > encounter several problems. They can be classified as follows:
> >       * Related to build system:
> >              1. To use "isblank" (src/nm-policy-hosts.c,
> >                 src/nm-policy.c), needs to enable C99. (see "man
> >                 blank")
> >              2. To use
> >                 "isascii" (libnm-util/nm-setting-wireless-security.c,
> ...), needs to define _BSD_SOURCE. (see "man isascii")
> >              3. To use "kill" (src/nm-device.c, ...), needs to
> >                 define _POSIX_SOURCE. (see "man 2 kill")
> >         So (one way) to build 0.8.2-beta1 successfully, I
> >         need(before ./configure):
> >               * export CFLAGS='-std=c99'
> >               * export CPPFLAGS='-D_BSD_SOURCE -D_POSIX_SOURCE'
>
> I believe all these should get covered by _GNU_SOURCE which
> in /usr/include/features.h defines _POSIX_SOURCE, _BSD_SOURCE, and
> _ISOC99_SOURCE.  At least if you're using gcc...  but what I found out
> was that we weren't including <config.h> in files that used kill(),
> which means those files wouldn't have _GNU_SOURCE defined.  I've pushed
> a patch to do so.  Does that fix these 3 issues for you?
>

Yeah, that works, thanks.
_______________________________________________
networkmanager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to