Various OSX warnings fixes.
[dcpomatic.git] / src / lib / json_server.cc
index 3f43a75eb8ee332a53d0a1bac1cb0e2ecc6e1dd0..4cff27b6f60a71e6439432cf8ce1650262d03a6a 100644 (file)
@@ -52,9 +52,11 @@ enum State {
 
 JSONServer::JSONServer (int port)
 {
-       thread* t = new thread (boost::bind (&JSONServer::run, this, port));
 #ifdef DCPOMATIC_LINUX
+       thread* t = new thread (boost::bind (&JSONServer::run, this, port));
        pthread_setname_np (t->native_handle(), "json-server");
+#else
+       new thread (boost::bind (&JSONServer::run, this, port));
 #endif
 }