File: sys-sysctl.patch

package info (click to toggle)
chipmunk 7.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,816 kB
  • sloc: ansic: 29,202; objc: 4,313; ruby: 409; makefile: 10; sh: 1
file content (24 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
commit 9a051e6fb970c7afe09ce2d564c163b81df050a8
Author: Alice Qio <qioalice@gmail.com>
Date:   Fri Jan 4 22:52:47 2019 +0300

    include 'sys/sysctl.h' only for apple devices

diff --git a/src/cpHastySpace.c b/src/cpHastySpace.c
index 8dca425..7d1de23 100644
--- a/src/cpHastySpace.c
+++ b/src/cpHastySpace.c
@@ -7,8 +7,12 @@
 //TODO: Move all the thread stuff to another file
 
 //#include <sys/param.h >
-#ifndef _WIN32
+
+#ifdef __APPLE__
 #include <sys/sysctl.h>
+#endif
+
+#ifndef _WIN32
 #include <pthread.h>
 #else
 #ifndef WIN32_LEAN_AND_MEAN