diff --git a/gfx/drivers/xshm_gfx.c b/gfx/drivers/xshm_gfx.c
index f42098133b..d9efe7498f 100644
--- a/gfx/drivers/xshm_gfx.c
+++ b/gfx/drivers/xshm_gfx.c
@@ -14,7 +14,7 @@
* If not, see .
*/
-#define _XOPEN_SOURCE 600 // TODO: this doesn't really belong here.
+#define _XOPEN_SOURCE 700 // TODO: this doesn't really belong here.
#include
#include
@@ -23,18 +23,6 @@
#include "config.h"
#endif
-#include
-#include
-
-#include "../../configuration.h"
-#include "../../driver.h"
-#include "../../retroarch.h"
-#include "../../runloop.h"
-#include "../../performance_counters.h"
-#include "../../verbosity.h"
-#include "../video_context_driver.h"
-#include "../font_driver.h"
-
#include "../common/x11_common.h"
#ifdef HAVE_MENU