Commit cef6224e authored by dscho's avatar dscho

do the in_addr_t stuff correctly...

parent a86e7fed
...@@ -232,8 +232,9 @@ AC_CACHE_CHECK([for in_addr_t], ...@@ -232,8 +232,9 @@ AC_CACHE_CHECK([for in_addr_t],
[inaddrt=yes], [inaddrt=yes],
[inaddrt=no]), [inaddrt=no]),
]) ])
AH_TEMPLATE(NEED_INADDR_T, [Need a typedef for in_addr_t])
if test $inaddrt = no ; then if test $inaddrt = no ; then
AC_CHECK_TYPE(in_addr_t, uint32_t) AC_DEFINE(NEED_INADDR_T)
fi fi
# Checks for library functions. # Checks for library functions.
......
...@@ -84,6 +84,10 @@ typedef int8_t rfbBool; ...@@ -84,6 +84,10 @@ typedef int8_t rfbBool;
typedef uint32_t rfbKeySym; typedef uint32_t rfbKeySym;
typedef uint32_t rfbPixel; typedef uint32_t rfbPixel;
#ifdef LIBVNCSERVER_NEED_INADDR_T
typedef uint32_t in_addr_t;
#endif
#ifndef INADDR_NONE #ifndef INADDR_NONE
#define INADDR_NONE ((in_addr_t) 0xffffffff) #define INADDR_NONE ((in_addr_t) 0xffffffff)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment