summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-02-18 14:47:04 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-02-18 14:47:47 +0100
commit501a9e0270afefea7b4f790e4efc291b2d2bcedd (patch)
treed642cf33de8d9bfb85dc9f43c8696a181caeb2dc
parent46ad1c43859fadbb88173f18c38bdad59c1812af (diff)
downloadlibuca-501a9e0270afefea7b4f790e4efc291b2d2bcedd.tar.gz
libuca-501a9e0270afefea7b4f790e4efc291b2d2bcedd.tar.bz2
libuca-501a9e0270afefea7b4f790e4efc291b2d2bcedd.tar.xz
libuca-501a9e0270afefea7b4f790e4efc291b2d2bcedd.zip
Add compatibility layer for new thread API
-rw-r--r--src/compat.h8
-rw-r--r--src/uca-camera.c1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
new file mode 100644
index 0000000..d2096f8
--- /dev/null
+++ b/src/compat.h
@@ -0,0 +1,8 @@
+#ifndef COMPAT_H
+#define COMPAT_H
+
+#if !GLIB_CHECK_VERSION(2, 32, 0)
+#define g_thread_new(name, func, data) g_thread_create(func, data, TRUE, NULL)
+#endif
+
+#endif
diff --git a/src/uca-camera.c b/src/uca-camera.c
index 7aa5fb0..503ee7a 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -26,6 +26,7 @@
#include <glib.h>
#include <string.h>
#include "config.h"
+#include "compat.h"
#include "uca-camera.h"
#include "uca-ring-buffer.h"
#include "uca-enums.h"