summaryrefslogtreecommitdiffstats
path: root/x11vnc/x11vnc.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/x11vnc.h')
-rw-r--r--x11vnc/x11vnc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.h b/x11vnc/x11vnc.h
index 9363cc2..f77cccd 100644
--- a/x11vnc/x11vnc.h
+++ b/x11vnc/x11vnc.h
@@ -316,6 +316,14 @@ extern int h_errno;
#include <arpa/inet.h>
#endif
+#ifndef X11VNC_IPV6
+#if defined(AF_INET6) || defined(PF_INET6)
+#define X11VNC_IPV6 1
+#else
+#define X11VNC_IPV6 0
+#endif
+#endif
+
#if LIBVNCSERVER_HAVE_PWD_H
#include <pwd.h>
#include <grp.h>