Parcourir la source

Tests: Fix missing include for check_discovery on OpenBSD

Julius Pfrommer il y a 6 ans
Parent
commit
24cb221aaf
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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