#include <stdlib.h>
#include <sys/types.h>
-#ifdef HAVE_MITSHM
#include <sys/ipc.h>
#include <sys/shm.h>
-#endif
#include <rfb/LogWriter.h>
#include <x0vncserver/Image.h>
updateRect(src->xim, dst_x, dst_y, src_x, src_y, w, h);
}
-#ifdef HAVE_MITSHM
-
//
// ShmImage class implementation.
//
}
#endif // HAVE_READDISPLAY
-#endif // HAVE_MITSHM
#ifdef HAVE_SUN_OVL
//
// Prepare useful shortcuts for compile-time options.
-#if defined(HAVE_READDISPLAY) && defined(HAVE_MITSHM)
+#if defined(HAVE_READDISPLAY)
#define HAVE_SHM_READDISPLAY
#endif
#if defined(HAVE_SHM_READDISPLAY) || defined(HAVE_SUN_OVL)
// Now, try to use shared memory image.
-#ifdef HAVE_MITSHM
if (mayUseShm) {
image = new ShmImage(d, width, height);
if (image->xim != NULL) {
delete image;
vlog.error("Failed to create SHM image, falling back to Xlib image");
}
-#endif // HAVE_MITSHM
// Fall back to Xlib image.
// ShmImage uses MIT-SHM extension of an X server to get image data.
//
-#ifdef HAVE_MITSHM
-
#include <X11/extensions/XShm.h>
class ShmImage : public Image {
};
#endif // HAVE_READDISPLAY
-#endif // HAVE_MITSHM
//
// SolarisOverlayImage uses SUN_OVL extension of an X server to get