summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-10 07:48:22 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-10 07:48:22 +0200
commit516221873b611bfa7159ef492c32a9e1c43bcfba (patch)
treed09f09a01ddf9e243708f40e021f8fd97379b83c
parentb7c28da390f1259c1c2be1b27a45fce71456ed9e (diff)
downloadgnutls-516221873b611bfa7159ef492c32a9e1c43bcfba.tar.gz
system.h: undefine macros before defining them
-rw-r--r--lib/system.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system.h b/lib/system.h
index f16fe43ecc..0ae3c63b17 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -122,16 +122,19 @@ void gnutls_system_global_deinit(void);
# endif
# include <arpa/inet.h>
#else
+# undef inet_aton
# define inet_aton _gnutls_inet_aton
int inet_aton(const char *cp, struct in_addr *inp);
#endif
#ifndef HAVE_INET_PTON
+# undef inet_pton
# define inet_pton _gnutls_inet_pton
int inet_pton(int af, const char *src, void *dst);
#endif
#ifndef HAVE_INET_NTOP
+# undef inet_ntop
# define inet_ntop _gnutls_inet_ntop
const char *inet_ntop(int af, const void *src,
char *dst, unsigned size);