When openwrt toolchain uses eglibc (2.15) instead of uclibc,
libevent2 build fails to following error:

Package libevent2 is missing dependencies for the following libraries:
librt.so.1

Fix is to define
DEPENDS:=+USE_EGLIBC:librt
which adds the librt dependency only if the eglibc is used by toolchain.
Patch has been tested by building the libevent2 both with the the eglibc and
uclibc  openwrt toolchains.

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33007 3c298f89-4303-0410-b956-a3cf2f4a3e73
With eglibc needs to define -D_GNU_SOURCE in cflags to avoid following error:

  CC      build-mips/sa/pton.o
src/sa/pton.c: In function 'net_inet_pton':
src/sa/pton.c:233:7: error: 'const struct in6_addr' has no member named 's6_addr32'
src/sa/pton.c:233:7: error: 'const struct in6_addr' has no member named 's6_addr32'
src/sa/pton.c:233:7: error: 'const struct in6_addr' has no member named 's6_addr32'

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33008 3c298f89-4303-0410-b956-a3cf2f4a3e73
Fix knock build with the openwrt eglibc toolchain by including the limits.h from knockd.c.
This will fix the error caused by undefined PATH_MAX variable.

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33009 3c298f89-4303-0410-b956-a3cf2f4a3e73
When openwrt toolchain uses eglibc (2.15) instead of uclibc,
samba36-server build causes following error:

Package samba36-{client,server} is missing dependencies for the following
libraries:
librt.so.1

Fix is to define
DEPENDS:=+USE_EGLIBC:librt
which adds the librt dependency only if the eglibc is used by toolchain.
Patch tested by building the samba36 both with the the eglibc and uclibc
openwrt toolchains.

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33010 3c298f89-4303-0410-b956-a3cf2f4a3e73
Fix the snort build with openwrt eglibc toolchain

Since eglibc doesn't get shipped with rpc support,
always build-depend on librpc now.

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33011 3c298f89-4303-0410-b956-a3cf2f4a3e73
If eglibc (2.1.5) is selected in openwrt instead
of uclibc, transmission package will fail to
build because the function definition exported by the
libtransmission/fdlimit.c is lightly different than
the function definition in fcntl.h that is installed
by eglibc.

To get transmission build to work both with uclibc
and eglibc, fdlimit.c needs to export function
only if the build toolchain uses uclibc.

This fixes also a openwrt bug
https://dev.openwrt.org/ticket/8820

openwrt_trunk.git/staging_dir/
toolchain-mipsel_gcc-4.6-linaro_eglibc-2.15/lib/
gcc/mipsel-openwrt-linux-gnu/4.6.3/../../../../
mipsel-openwrt-linux-gnu/sys-include/bits/fcntl.h:316:12:
error: conflicting types for 'fallocate64'
fdlimit.c:30:14: note: previous declaration of 'fallocate64' was here

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33012 3c298f89-4303-0410-b956-a3cf2f4a3e73
[packages] fix uhub for event and event2 co existance

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33013 3c298f89-4303-0410-b956-a3cf2f4a3e73