diff options
Diffstat (limited to 'x11vnc/x11vnc.h')
-rw-r--r-- | x11vnc/x11vnc.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.h b/x11vnc/x11vnc.h index 98235c7..e987014 100644 --- a/x11vnc/x11vnc.h +++ b/x11vnc/x11vnc.h @@ -134,6 +134,29 @@ #define PASSWD_UNLESS_NOPW 0 #endif +/* some -D macros for building with old LibVNCServer */ +#ifndef LIBVNCSERVER_HAS_STATS +#define LIBVNCSERVER_HAS_STATS 1 +#endif + +#ifndef LIBVNCSERVER_HAS_SHUTDOWNSOCKETS +#define LIBVNCSERVER_HAS_SHUTDOWNSOCKETS 1 +#endif + +#ifndef LIBVNCSERVER_HAS_TEXTCHAT +#define LIBVNCSERVER_HAS_TEXTCHAT 1 +#endif + +#ifdef PRE_0_8_LIBVNCSERVER +#undef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER +#undef LIBVNCSERVER_HAS_STATS +#undef LIBVNCSERVER_HAS_SHUTDOWNSOCKETS +#undef LIBVNCSERVER_HAS_TEXTCHAT +#define LIBVNCSERVER_HAS_STATS 0 +#define LIBVNCSERVER_HAS_SHUTDOWNSOCKETS 0 +#define LIBVNCSERVER_HAS_TEXTCHAT 0 +#endif + /* these are for delaying features: */ #define xxNO_SSL_OR_UNIXPW #define xxNO_NCACHE @@ -213,6 +236,10 @@ #include <sys/shm.h> #include <X11/extensions/XShm.h> #endif +#if LIBVNCSERVER_HAVE_SHMAT +#include <sys/ipc.h> +#include <sys/shm.h> +#endif #include <dirent.h> |