Browse Source

Tests: Fix missing include for check_discovery on OpenBSD

Julius Pfrommer 6 years ago
parent
commit
24cb221aaf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/server/check_discovery.c

+ 4 - 0
tests/server/check_discovery.c

@@ -12,6 +12,10 @@
 #include <fcntl.h>
 #include <check.h>
 
+#ifndef _WIN32
+#include <sys/stat.h>
+#endif
+
 // set register timeout to 1 second so we are able to test it.
 #define registerTimeout 1
 // cleanup is only triggered every 10 seconds, thus wait a bit longer to check