diff options
author | Peter Seiderer <ps.report@gmx.net> | 2015-03-10 20:59:38 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-03-15 19:06:56 +0100 |
commit | f909587180c727f00d5c702603b8f71ddbb5aa7b (patch) | |
tree | abbd89c97c2526934bb71bef7e70bfb55bd812d4 /package/postgresql/postgresql.mk | |
parent | f5e4ca10220e2325d3a34c0a423388e40b27dbdf (diff) | |
download | buildroot-f909587180c727f00d5c702603b8f71ddbb5aa7b.tar.gz buildroot-f909587180c727f00d5c702603b8f71ddbb5aa7b.zip |
postgresql: fix IPv6 detection for uclibc compile
Assist configure IPv6 support detection for uclibc,
fixes the following uclibc compile failure:
auth.c: In function ‘CheckRADIUSAuth’:
auth.c:2379:24: error: ‘in6addr_any’ undeclared (first use in this function)
localaddr.sin6_addr = in6addr_any;
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/postgresql/postgresql.mk')
-rw-r--r-- | package/postgresql/postgresql.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk index 03154afe3a..7ebf79530f 100644 --- a/package/postgresql/postgresql.mk +++ b/package/postgresql/postgresql.mk @@ -14,6 +14,12 @@ POSTGRESQL_INSTALL_STAGING = YES POSTGRESQL_CONFIG_SCRIPTS = pg_config ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) +# overwrite IPV6 detection +ifeq ($(BR2_INET_IPV6),y) +POSTGRESQL_CONF_ENV += ac_cv_type_struct_sockaddr_in6=yes +else +POSTGRESQL_CONF_ENV += ac_cv_type_struct_sockaddr_in6=no +endif # PostgreSQL does not build against uClibc with locales # enabled, due to an uClibc bug, see # http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html |