mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
add compatibility code for older GResolver
This commit is contained in:
parent
3629a122c6
commit
e9281b2f11
2 changed files with 53 additions and 0 deletions
|
|
@ -16,6 +16,19 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if GLIB_CHECK_VERSION(2, 59, 0)
|
||||
/* nothing */
|
||||
#else
|
||||
/* compatibility code for old GLib */
|
||||
|
||||
typedef enum {
|
||||
G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT = 0,
|
||||
G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY = 1 << 0,
|
||||
G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY = 1 << 1,
|
||||
} GResolverNameLookupFlags;
|
||||
|
||||
#endif
|
||||
|
||||
struct _IPADDR {
|
||||
unsigned short family;
|
||||
struct in6_addr ip;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue