mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
gio: C_IN is defined in recent Android headers.
C_IN macro was added years ago in bcbaf1bef0, using same value as the internal code of Android with the reasonning that "some parts of the API used by the resolver objects is not public in the Android NDK (yet)". Well since then things are changed, since it is definitely available (at least on the API 22 of Android which I am using) in the public header arpa/nameser_compat.h. Let's just add a #ifndef to handle both cases when you build with an older or recent API.
This commit is contained in:
parent
e1eaea3eea
commit
631035342d
@ -803,7 +803,9 @@ free_records (GList *records)
|
||||
|
||||
#if defined(G_OS_UNIX)
|
||||
#ifdef __BIONIC__
|
||||
#ifndef C_IN
|
||||
#define C_IN 1
|
||||
#endif
|
||||
int res_query(const char *, int, int, u_char *, int);
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user