These changes from @theuni help building when targeting platforms that don't always have getifaddrs available like Android < 24
build: avoid getifaddrs when unavailable #14127
pull greenaddress wants to merge 1 commits into bitcoin:master from greenaddress:avoid_unavailable_getifaddrs changing 2 files +5 −1-
greenaddress commented at 1:28 PM on September 1, 2018: contributor
-
build: avoid getifaddrs when unavailable 9256f7d13f
- fanquake added the label Build system on Sep 1, 2018
-
in configure.ac:733 in 9256f7d13f
726 | @@ -727,6 +727,10 @@ fi 727 | 728 | AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h]) 729 | 730 | +AC_CHECK_DECLS([getifaddrs, freeifaddrs],,, 731 | + [#include <sys/types.h> 732 | + #include <ifaddrs.h>] 733 | +)
Empact commented at 7:47 PM on September 1, 2018:Seems a bit simpler overall to add ifaddrs.h to
AC_CHECK_HEADERSabove, as it seems android does not include the header at all, and switch onHAVE_SYS_TYPES_HandHAVE_IFADDERS_H
greenaddress commented at 8:19 PM on September 2, 2018:android has them but not in all versions.
Only from android 24 onwards
see https://android.googlesource.com/platform/prebuilts/ndk/+/dev/platform/sysroot/usr/include/ifaddrs.h
Empact commented at 7:47 PM on September 1, 2018: memberShould we also guard the includes?
laanwj commented at 11:21 PM on September 1, 2018: memberconcept ACK
thanks for starting to upstream android stuff
fanquake requested review from theuni on Sep 2, 2018fanquake commented at 6:01 AM on September 2, 2018: memberConcept ACK
If anyone's interested in the Android work being done by @greenaddress, there's a fair bit of discussion in #11844.
bitcoin deleted a comment on Sep 9, 2018laanwj commented at 4:07 PM on September 10, 2018: memberutACK 9256f7d13f5b68ebc2981e8f45777f4bdc43f1b3
laanwj merged this on Sep 10, 2018laanwj closed this on Sep 10, 2018laanwj referenced this in commit 7c7bb6e772 on Sep 10, 2018greenaddress deleted the branch on Sep 10, 2018theuni commented at 6:20 PM on September 17, 2018: memberSorry for missing this while I was away. Post-merge utACK.
Bushstar cross-referenced this on Oct 11, 2018 from issue Updates from bitcoin/master by BushstarFuzzbawls cross-referenced this on Apr 14, 2021 from issue [Refactor] Update RNG code from upstream by Fuzzbawlsrandom-zebra referenced this in commit 93f43f0f81 on Apr 14, 2021PastaPastaPasta referenced this in commit eae8c70e86 on Jun 27, 2021PastaPastaPasta referenced this in commit 068a4b08b1 on Jun 28, 2021PastaPastaPasta referenced this in commit c759dbfa1b on Jun 29, 2021PastaPastaPasta referenced this in commit deab1b0397 on Jul 1, 2021bitcoin locked this on Sep 8, 2021ContributorsLabels
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC