diff options
Diffstat (limited to 'modules/pdp_capture.c')
-rw-r--r-- | modules/pdp_capture.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/pdp_capture.c b/modules/pdp_capture.c index 3231f4d..ccdc5c1 100644 --- a/modules/pdp_capture.c +++ b/modules/pdp_capture.c @@ -29,12 +29,18 @@ #include <assert.h> #include <X11/Xlib.h> #include <X11/Xatom.h> +#include <magick/methods.h> #include <magick/api.h> #include <magick/magick.h> #include <magick/xwindow.h> #define PDP_DISPLAY_LENGTH 1024 +// trick to handle Image Magick compatibility +#if MagickLibVersion >= 0x619 +#include "../include/xwindow-private.h" +#endif + static char *pdp_capture_version = "pdp_capture: version 0.1, capture of screen written by Yves Degoyon (ydegoyon@free.fr)"; typedef struct pdp_capture_struct |