summaryrefslogtreecommitdiffstats
path: root/src/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui.h b/src/gui.h
index a16f0986e7..dd1bbdc687 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -29,6 +29,12 @@
# include <gtk/gtk.h>
#endif
+// Needed when generating prototypes, since FEAT_GUI is always defined then.
+#if defined(FEAT_XCLIPBOARD) && !defined(FEAT_GUI_MOTIF) \
+ && !defined(FEAT_GUI_ATHENA) && !defined(FEAT_GUI_GTK)
+# include <X11/Intrinsic.h>
+#endif
+
#ifdef FEAT_GUI_MAC
# include <Types.h>
/*# include <Memory.h>*/