diff options
author | Max Kellermann <max@duempel.org> | 2015-01-26 20:57:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-26 20:57:29 +0100 |
commit | ae7e1a22cb3bc6029a6f270c3a68a139dfa86085 (patch) | |
tree | e4c11d3d2f125222b498005fcb6365ea94e53f9b /src/thread | |
parent | 16944b53973cb52f343eda947262bf7a968b1953 (diff) | |
parent | a289dcb9ee6d7992a21f24b99be667eed6c32321 (diff) | |
download | mpd-ae7e1a22cb3bc6029a6f270c3a68a139dfa86085.tar.gz mpd-ae7e1a22cb3bc6029a6f270c3a68a139dfa86085.tar.xz mpd-ae7e1a22cb3bc6029a6f270c3a68a139dfa86085.zip |
Merge branch 'v0.19.x'
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/Name.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/thread/Name.hxx b/src/thread/Name.hxx index 1576b3fde..999cebf73 100644 --- a/src/thread/Name.hxx +++ b/src/thread/Name.hxx @@ -23,7 +23,6 @@ #if defined(HAVE_PTHREAD_SETNAME_NP) && !defined(__NetBSD__) # define HAVE_THREAD_NAME # include <pthread.h> -# include <stdio.h> #elif defined(HAVE_PRCTL) # include <sys/prctl.h> # ifdef PR_SET_NAME @@ -31,6 +30,10 @@ # endif #endif +#ifdef HAVE_THREAD_NAME +# include <stdio.h> +#endif + static inline void SetThreadName(const char *name) { |