diff --git a/tests/testappchooser.c b/tests/testappchooser.c
index 436c56a378..221bd613ec 100644
--- a/tests/testappchooser.c
+++ b/tests/testappchooser.c
@@ -16,6 +16,8 @@
* License along with this library. If not, see .
*/
+#include "config.h"
+
#include
#include
diff --git a/tests/testappchooserbutton.c b/tests/testappchooserbutton.c
index 0bc54fe53b..c4b2872a97 100644
--- a/tests/testappchooserbutton.c
+++ b/tests/testappchooserbutton.c
@@ -16,8 +16,9 @@
* License along with this library. If not, see .
*/
-#include
+#include "config.h"
+#include
#include
#define CUSTOM_ITEM "custom-item"