summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-09-07 19:24:12 +1000
committerRan Benita <ran@unusedvar.com>2020-09-07 22:01:57 +0300
commit13745014c384aca9606dbda5364b6c7ea49e2471 (patch)
treefaf83f32ca5925b91fc587fbc823bbd0eda1eb7b /test
parent534e54f6210bb14a3a67cdc396714d09af61a227 (diff)
downloadxorg-lib-libxkbcommon-13745014c384aca9606dbda5364b6c7ea49e2471.tar.gz
test: include unstd.h in the registry test to cut down the MacOS warnings
mkdtmp, rmdir and unlink are in unstd.h on MacOS. Since including that it doesn't hurt us on Linux, let's do it without ifdefs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/registry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/registry.c b/test/registry.c
index fc5f6da..fab3b69 100644
--- a/test/registry.c
+++ b/test/registry.c
@@ -24,6 +24,9 @@
#include "config.h"
#include <assert.h>
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <stdarg.h>
#include <stdio.h>
#include <sys/stat.h>