summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--rfb/rfbproto.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f6aa08a..3b1fdf1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,8 +232,9 @@ AC_CACHE_CHECK([for in_addr_t],
[inaddrt=yes],
[inaddrt=no]),
])
+AH_TEMPLATE(NEED_INADDR_T, [Need a typedef for in_addr_t])
if test $inaddrt = no ; then
- AC_CHECK_TYPE(in_addr_t, uint32_t)
+ AC_DEFINE(NEED_INADDR_T)
fi
# Checks for library functions.
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h
index a6ff83f..29b4b08 100644
--- a/rfb/rfbproto.h
+++ b/rfb/rfbproto.h
@@ -84,6 +84,10 @@ typedef int8_t rfbBool;
typedef uint32_t rfbKeySym;
typedef uint32_t rfbPixel;
+#ifdef LIBVNCSERVER_NEED_INADDR_T
+typedef uint32_t in_addr_t;
+#endif
+
#ifndef INADDR_NONE
#define INADDR_NONE ((in_addr_t) 0xffffffff)
#endif