]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | diff --git a/libarchive/archive_random.c b/libarchive/archive_random.c\r |
2 | index 65ea691..63217ec 100644\r | |
3 | --- a/libarchive/archive_random.c\r | |
4 | +++ b/libarchive/archive_random.c\r | |
5 | @@ -48,6 +48,10 @@ __FBSDID("$FreeBSD$");\r | |
6 | #include <sys/time.h>\r | |
7 | #endif\r | |
8 | #ifdef HAVE_PTHREAD_H\r | |
9 | +#ifdef __GNUC__\r | |
10 | +#define _GNU_SOURCE\r | |
11 | +#include <sched.h>\r | |
12 | +#endif\r | |
13 | #include <pthread.h>\r | |
14 | #endif\r | |
15 | \r |