diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-26 21:29:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-26 21:30:59 +0200 |
| commit | 6eba051dcbb8c56e3e2efea946ce0380d17a7b33 (patch) | |
| tree | 3749c9cb5cbd8be4b14936978e13b889ffcc73a3 /src/lib/json_server.cc | |
| parent | 2e0cf721530a17b0190c938b04176e0315950053 (diff) | |
Various OSX warnings fixes.
Diffstat (limited to 'src/lib/json_server.cc')
| -rw-r--r-- | src/lib/json_server.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/json_server.cc b/src/lib/json_server.cc index 3f43a75eb..4cff27b6f 100644 --- a/src/lib/json_server.cc +++ b/src/lib/json_server.cc @@ -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 } |
