projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not include OpenSSL headers directly.
[tinc]
/
lib
/
fake-getaddrinfo.c
diff --git
a/lib/fake-getaddrinfo.c
b/lib/fake-getaddrinfo.c
index
0c27025
..
df3d347
100644
(file)
--- a/
lib/fake-getaddrinfo.c
+++ b/
lib/fake-getaddrinfo.c
@@
-16,7
+16,8
@@
#include "fake-getaddrinfo.h"
#include "xalloc.h"
#include "fake-getaddrinfo.h"
#include "xalloc.h"
-#ifndef HAVE_GAI_STRERROR
+
+#if !HAVE_DECL_GAI_STRERROR
char *gai_strerror(int ecode) {
switch (ecode) {
case EAI_NODATA:
char *gai_strerror(int ecode) {
switch (ecode) {
case EAI_NODATA:
@@
-31,7
+32,7
@@
char *gai_strerror(int ecode) {
}
#endif /* !HAVE_GAI_STRERROR */
}
#endif /* !HAVE_GAI_STRERROR */
-#if
ndef HAVE
_FREEADDRINFO
+#if
!HAVE_DECL
_FREEADDRINFO
void freeaddrinfo(struct addrinfo *ai) {
struct addrinfo *next;
void freeaddrinfo(struct addrinfo *ai) {
struct addrinfo *next;
@@
-43,7
+44,7
@@
void freeaddrinfo(struct addrinfo *ai) {
}
#endif /* !HAVE_FREEADDRINFO */
}
#endif /* !HAVE_FREEADDRINFO */
-#if
ndef HAVE
_GETADDRINFO
+#if
!HAVE_DECL
_GETADDRINFO
static struct addrinfo *malloc_ai(uint16_t port, uint32_t addr) {
struct addrinfo *ai;
static struct addrinfo *malloc_ai(uint16_t port, uint32_t addr) {
struct addrinfo *ai;