--- gnome-control-center-3.24.0/panels/common/gsd-device-manager-udev.c.orig	2017-03-25 18:33:27.320281113 +0000
+++ gnome-control-center-3.24.0/panels/common/gsd-device-manager-udev.c	2017-03-25 18:34:13.372086649 +0000
@@ -24,7 +24,9 @@
 #include <string.h>
 #include <gudev/gudev.h>
 
+#ifdef HAVE_WAYLAND
 #include <gdk/gdkwayland.h>
+#endif
 #include "gsd-device-manager-udev.h"
 
 struct _GsdUdevDeviceManager
