summaryrefslogtreecommitdiff
path: root/share/cmake-3.10/Modules/CheckForPthreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.10/Modules/CheckForPthreads.c')
-rw-r--r--share/cmake-3.10/Modules/CheckForPthreads.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/cmake-3.10/Modules/CheckForPthreads.c b/share/cmake-3.10/Modules/CheckForPthreads.c
new file mode 100644
index 0000000..e70ceb1
--- /dev/null
+++ b/share/cmake-3.10/Modules/CheckForPthreads.c
@@ -0,0 +1,15 @@
+#include <pthread.h>
+
+void* start_routine(void* args)
+{
+ return args;
+}
+
+int main(void)
+{
+ /* This is a compile and link test, no code to actually run things. */
+ pthread_t thread;
+ pthread_create(&thread, 0, start_routine, 0);
+ pthread_join(thread, 0);
+ return 0;
+}