mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 03:27:50 +08:00
59b28867dc
* [libarchive] Fix cpu_set_t missing * [xalan-c] Fix flakiness in presense of ICU * [openvpn3] Add missing bits/endian.h include * [vcpkg-baseline] Mark vtk as no longer failing
16 lines
378 B
Diff
16 lines
378 B
Diff
diff --git a/libarchive/archive_random.c b/libarchive/archive_random.c
|
|
index 65ea691..63217ec 100644
|
|
--- a/libarchive/archive_random.c
|
|
+++ b/libarchive/archive_random.c
|
|
@@ -48,6 +48,10 @@ __FBSDID("$FreeBSD$");
|
|
#include <sys/time.h>
|
|
#endif
|
|
#ifdef HAVE_PTHREAD_H
|
|
+#ifdef __GNUC__
|
|
+#define _GNU_SOURCE
|
|
+#include <sched.h>
|
|
+#endif
|
|
#include <pthread.h>
|
|
#endif
|
|
|