Patchwork toolchain/uClibc: enable UCLIBC_SUPPORT_AI_ADDRCONFIG

login
register
mail settings
Submitter Gustavo Zacarias
Date May 2, 2012, 1:33 p.m.
Message ID <1335965607-1377-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/156457/
State Accepted
Commit d3e061fc770275c018c809baa1d449142fc9d10e
Headers show

Comments

Gustavo Zacarias - May 2, 2012, 1:33 p.m.
Enable AI_ADDRCONFIG support in uClibc otherwise we don't get the
ifaddrs.h header installed and thus lack getifaddrs support.
Quite useful for samba for example so we can use interfaces=eth0 statements in
the configuration file rather than klunkier
interfaces=192.168.1.1/255.255.255.0 ones.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 toolchain/uClibc/uClibc-0.9.31.config   |    2 +-
 toolchain/uClibc/uClibc-0.9.32.config   |    2 +-
 toolchain/uClibc/uClibc-0.9.33.config   |    2 +-
 toolchain/uClibc/uClibc-snapshot.config |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Peter Korsgaard - May 3, 2012, 1:54 p.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> Enable AI_ADDRCONFIG support in uClibc otherwise we don't get
 Gustavo> the ifaddrs.h header installed and thus lack getifaddrs
 Gustavo> support.  Quite useful for samba for example so we can use
 Gustavo> interfaces=eth0 statements in the configuration file rather
 Gustavo> than klunkier interfaces=192.168.1.1/255.255.255.0 ones.

Committed, thanks.

Patch

diff --git a/toolchain/uClibc/uClibc-0.9.31.config b/toolchain/uClibc/uClibc-0.9.31.config
index fd1ab98..2f363db 100644
--- a/toolchain/uClibc/uClibc-0.9.31.config
+++ b/toolchain/uClibc/uClibc-0.9.31.config
@@ -135,7 +135,7 @@  UCLIBC_HAS_IPV4=y
 # UCLIBC_HAS_FULL_RPC is not set
 # UCLIBC_HAS_REENTRANT_RPC is not set
 UCLIBC_USE_NETLINK=y
-# UCLIBC_SUPPORT_AI_ADDRCONFIG is not set
+UCLIBC_SUPPORT_AI_ADDRCONFIG=y
 # UCLIBC_HAS_BSD_RES_CLOSE is not set
 UCLIBC_HAS_COMPAT_RES_STATE=y
 # UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
diff --git a/toolchain/uClibc/uClibc-0.9.32.config b/toolchain/uClibc/uClibc-0.9.32.config
index 0782b6f..68efac9 100644
--- a/toolchain/uClibc/uClibc-0.9.32.config
+++ b/toolchain/uClibc/uClibc-0.9.32.config
@@ -160,7 +160,7 @@  UCLIBC_HAS_IPV4=y
 # UCLIBC_HAS_FULL_RPC is not set
 # UCLIBC_HAS_REENTRANT_RPC is not set
 UCLIBC_USE_NETLINK=y
-# UCLIBC_SUPPORT_AI_ADDRCONFIG is not set
+UCLIBC_SUPPORT_AI_ADDRCONFIG=y
 # UCLIBC_HAS_BSD_RES_CLOSE is not set
 UCLIBC_HAS_COMPAT_RES_STATE=y
 # UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
diff --git a/toolchain/uClibc/uClibc-0.9.33.config b/toolchain/uClibc/uClibc-0.9.33.config
index 4ce643a..eb39df6 100644
--- a/toolchain/uClibc/uClibc-0.9.33.config
+++ b/toolchain/uClibc/uClibc-0.9.33.config
@@ -168,7 +168,7 @@  UCLIBC_HAS_IPV4=y
 # UCLIBC_HAS_FULL_RPC is not set
 # UCLIBC_HAS_REENTRANT_RPC is not set
 UCLIBC_USE_NETLINK=y
-# UCLIBC_SUPPORT_AI_ADDRCONFIG is not set
+UCLIBC_SUPPORT_AI_ADDRCONFIG=y
 # UCLIBC_HAS_BSD_RES_CLOSE is not set
 UCLIBC_HAS_COMPAT_RES_STATE=y
 # UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set
diff --git a/toolchain/uClibc/uClibc-snapshot.config b/toolchain/uClibc/uClibc-snapshot.config
index 4ce643a..eb39df6 100644
--- a/toolchain/uClibc/uClibc-snapshot.config
+++ b/toolchain/uClibc/uClibc-snapshot.config
@@ -168,7 +168,7 @@  UCLIBC_HAS_IPV4=y
 # UCLIBC_HAS_FULL_RPC is not set
 # UCLIBC_HAS_REENTRANT_RPC is not set
 UCLIBC_USE_NETLINK=y
-# UCLIBC_SUPPORT_AI_ADDRCONFIG is not set
+UCLIBC_SUPPORT_AI_ADDRCONFIG=y
 # UCLIBC_HAS_BSD_RES_CLOSE is not set
 UCLIBC_HAS_COMPAT_RES_STATE=y
 # UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set