summaryrefslogtreecommitdiff
blob: 1594c33ee3d271c81201ca8f43e026c26cdd796d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/setup.py b/setup.py
index cd9a549..440043c 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ link_args = []
 
 if os.name == 'posix' and sys.platform != 'darwin':
     compiler = new_compiler()
-    if compiler.has_function('timer_create', libraries=('rt', )):
+    if compiler.has_function('timer_create', libraries=('rt', ), includes=["signal.h", "time.h"]):
         user_macros.append(('LIB_RT_AVAILABLE', '1'))
         user_libraries.append('rt')
 if _DEBUG: