From 01e89f41b7b5621d8a42dd756c13a457d4ae0439 Mon Sep 17 00:00:00 2001
From: James Booth <boothj5@gmail.com>
Date: Sun, 2 Oct 2016 00:31:38 +0100
Subject: [PATCH 1/2] Add stub_ui.h to Makefile.am

---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 6a98e981..b8424856 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -98,7 +98,7 @@ unittest_sources = \
 	src/event/client_events.c src/event/client_events.h \
 	src/ui/tray.h src/ui/tray.c \
 	tests/unittests/xmpp/stub_xmpp.c \
-	tests/unittests/ui/stub_ui.c \
+	tests/unittests/ui/stub_ui.c tests/unittests/ui/stub_ui.h \
 	tests/unittests/log/stub_log.c \
 	tests/unittests/config/stub_accounts.c \
 	tests/unittests/tools/stub_http_upload.c \

From 772a72b6e6c448255f1beadebd81e1ef299b258b Mon Sep 17 00:00:00 2001
From: James Booth <boothj5@gmail.com>
Date: Sun, 2 Oct 2016 22:52:17 +0100
Subject: [PATCH 2/2] Add config.h to http_upload.c

---
 src/tools/http_upload.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tools/http_upload.c b/src/tools/http_upload.c
index 5254009c..fc41ec5e 100644
--- a/src/tools/http_upload.c
+++ b/src/tools/http_upload.c
@@ -34,6 +34,8 @@
 
 #define _GNU_SOURCE 1
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>