Debian Codegraph @

debian/patches/sys-sysctl.patch

raw
1 commit 9a051e6fb970c7afe09ce2d564c163b81df050a8
2 Author: Alice Qio <[email protected]>
3 Date: Fri Jan 4 22:52:47 2019 +0300
4
5 include 'sys/sysctl.h' only for apple devices
6
7 diff --git a/src/cpHastySpace.c b/src/cpHastySpace.c
8 index 8dca425..7d1de23 100644
9 --- a/src/cpHastySpace.c
10 +++ b/src/cpHastySpace.c
11 @@ -7,8 +7,12 @@
12 //TODO: Move all the thread stuff to another file
13
14 //#include <sys/param.h >
15 -#ifndef _WIN32
16 +
17 +#ifdef __APPLE__
18 #include <sys/sysctl.h>
19 +#endif
20 +
21 +#ifndef _WIN32
22 #include <pthread.h>
23 #else
24 #ifndef WIN32_LEAN_AND_MEAN