summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libaddns/dns.h24
-rw-r--r--source3/libaddns/dnssock.c2
2 files changed, 25 insertions, 1 deletions
diff --git a/source3/libaddns/dns.h b/source3/libaddns/dns.h
index a95183a218..ed12966d7d 100644
--- a/source3/libaddns/dns.h
+++ b/source3/libaddns/dns.h
@@ -50,6 +50,30 @@
#include <krb5.h>
#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+
+#ifndef int16
+#define int16 int16_t
+#endif
+
+#ifndef uint16
+#define uint16 uint16_t
+#endif
+
+#ifndef int32
+#define int32 int32_t
+#endif
+
+#ifndef uint32
+#define uint32 uint32_t
+#endif
+#endif
+
+#ifdef HAVE_KRB5_H
+#include <krb5.h>
+#endif
+
#if HAVE_GSSAPI_H
#include <gssapi.h>
#elif HAVE_GSSAPI_GSSAPI_H
diff --git a/source3/libaddns/dnssock.c b/source3/libaddns/dnssock.c
index d3223b9bd8..ac66a6d1b4 100644
--- a/source3/libaddns/dnssock.c
+++ b/source3/libaddns/dnssock.c
@@ -238,7 +238,7 @@ static int32 DNSSelect( HANDLE hDNSHandle )
if ( !dwNumSockets ) {
#ifndef WIN32
dwError = ETIMEDOUT;
-#elif
+#else
dwError = WSAETIMEDOUT;
#endif
}