summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2019-10-17 19:11:52 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2019-10-25 18:37:51 +0100
commit608640b87dc47233940664632e3ab8f13972be2b (patch)
tree221ff4d17dfb5805f8cebdbaee76a1e67641e0dd /test/utils
parent13ebb8f32f767c596b1b8bd16b90703a8135f20b (diff)
Fix Win32 build since c4ed2e06 "Add some unit testing utilities"
Provide Win32 replacements for realpath() and err.h
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/font-test-utils.c3
-rw-r--r--test/utils/lsfontdir.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/test/utils/font-test-utils.c b/test/utils/font-test-utils.c
index ff05061..da32e08 100644
--- a/test/utils/font-test-utils.c
+++ b/test/utils/font-test-utils.c
@@ -58,7 +58,10 @@ SOFTWARE.
#include <stdlib.h>
#include <limits.h>
#include <assert.h>
+#ifdef HAVE_ERR_H
#include <err.h>
+#endif
+#include "src/util/replace.h"
#include <X11/X.h>
static unsigned long server_generation;
diff --git a/test/utils/lsfontdir.c b/test/utils/lsfontdir.c
index 1f46599..23826cf 100644
--- a/test/utils/lsfontdir.c
+++ b/test/utils/lsfontdir.c
@@ -30,7 +30,10 @@
#include "font-test-utils.h"
#include <stdio.h>
#include <assert.h>
+#ifdef HAVE_ERR_H
#include <err.h>
+#endif
+#include "src/util/replace.h"
int
main(int argc, char **argv)