Skip to content

Commit

Permalink
Merge pull request #2072 from Mystfit/android_api_supports_ifaddrs
Browse files Browse the repository at this point in the history
Android NDK platform 24 and above supports ifaddrs.h
  • Loading branch information
sappo authored Mar 16, 2020
2 parents 9457ce6 + 3133f54 commit d445acc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions include/czmq_prelude.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,14 @@
# include <sys/un.h>
# include <sys/uio.h> // Let CZMQ build with libzmq/3.x
# include <netinet/in.h> // Must come before arpa/inet.h
# if (!defined (__UTYPE_ANDROID)) && (!defined (__UTYPE_IBMAIX)) \
&& (!defined (__UTYPE_HPUX))
# include <ifaddrs.h>
# if (!defined (__UTYPE_IBMAIX)) && (!defined (__UTYPE_HPUX))
# if(defined(__UTYPE_ANDROID))
# if(defined(__ANDROID_API__)) && (__ANDROID_API__ >= 24)
# include <ifaddrs.h>
# endif
# else
# include <ifaddrs.h>
# endif
# endif
# if defined (__UTYPE_SUNSOLARIS) || defined (__UTYPE_SUNOS)
# include <sys/sockio.h>
Expand Down

0 comments on commit d445acc

Please sign in to comment.