syslog-ng.inc: Fix build when DISTRO_FEATURES lacks largefile and/or ipv6.
authorGraham Gower <graham.gower@gmail.com>
Tue, 30 Nov 2010 06:36:57 +0000 (17:06 +1030)
committerKhem Raj <raj.khem@gmail.com>
Thu, 2 Dec 2010 19:20:17 +0000 (11:20 -0800)
commit63e72fa14002ebbc1263aa785a7e171ad5899569
tree572921cfc7681e4ec6d109de11af6e3292e613e0
parentf2108885117d8460c21bbc182f2fb2ce0dfda2ba
syslog-ng.inc: Fix build when DISTRO_FEATURES lacks largefile and/or ipv6.

In file included from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/limits.h:27:0,
                 from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/glib-2.0/include/glibconfig.h:11,
                 from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/glib-2.0/glib/gtypes.h:34,
                 from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/glib-2.0/glib/galloca.h:34,
                 from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/glib-2.0/glib.h:32,
                 from syslog-ng.h:37,
                 from misc.h:27,
                 from misc.c:24:
/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/features.h:216:5: error: #error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file support enabled.

| afinet.c: In function 'afinet_setup_socket':
| afinet.c:205:42: error: 'IPV6_JOIN_GROUP' undeclared (first use in this function)
| afinet.c:205:42: note: each undeclared identifier is reported only once for each function it appears in
| afinet.c:206:42: error: 'IPV6_MULTICAST_LOOP' undeclared (first use in this function)
| afinet.c:211:44: error: 'IPV6_MULTICAST_HOPS' undeclared (first use in this function)
| afinet.c:217:40: error: 'IPV6_UNICAST_HOPS' undeclared (first use in this function)
| afinet.c: In function 'afinet_dd_construct_ipv6_packet':
| afinet.c:448:36: warning: dereferencing type-punned pointer will break strict-aliasing rules
| afinet.c:449:36: warning: dereferencing type-punned pointer will break strict-aliasing rules

Signed-off-by: Graham Gower <graham.gower@gmail.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
recipes/syslog-ng/syslog-ng.inc