diff options
author | Max Kellermann <max@duempel.org> | 2015-01-21 20:40:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-21 20:40:56 +0100 |
commit | 276a0d9500b8efc879e4f0c23e9d0e361849e295 (patch) | |
tree | 3bed246a4c2f0c7e82e39e7ac9d5158c2c09c3ce | |
parent | 384b6c82881e26b1b1995cdc6d90683b8b5c1201 (diff) | |
download | mpd-276a0d9500b8efc879e4f0c23e9d0e361849e295.tar.gz mpd-276a0d9500b8efc879e4f0c23e9d0e361849e295.tar.xz mpd-276a0d9500b8efc879e4f0c23e9d0e361849e295.zip |
thread/Name: include stdio.h if HAVE_PRCTL
Caused a build failure with uClibc because snprintf() was not
available.
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/thread/Name.hxx | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,5 @@ ver 0.19.9 (not yet released) +* fix build failure with uClibc ver 0.19.8 (2015/01/14) * input diff --git a/src/thread/Name.hxx b/src/thread/Name.hxx index 0fbad0fd2..a99208dab 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) { |