浏览代码

Tests: Fix missing include for check_discovery on OpenBSD

Julius Pfrommer 6 年之前
父节点
当前提交
24cb221aaf
共有 1 个文件被更改,包括 4 次插入0 次删除
  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