Build fix: missing unistd.h include in utils.h
[lttng-tools.git] / tests / utils / utils.h
index afacf8d2f8cda641976aca064a6b52cf6c456fcd..8f04413c6183385740f0b104967de21c4e4ddcde 100644 (file)
@@ -8,6 +8,12 @@
 #ifndef TEST_UTILS_H
 #define TEST_UTILS_H
 
+#include <unistd.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
 
 /*
@@ -37,4 +43,8 @@ int usleep_safe(useconds_t usec);
 int create_file(const char *path);
 int wait_on_file(const char *path);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* TEST_UTILS_H */
This page took 0.02359 seconds and 4 git commands to generate.