From 276a0d9500b8efc879e4f0c23e9d0e361849e295 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 20:40:56 +0100 Subject: thread/Name: include stdio.h if HAVE_PRCTL Caused a build failure with uClibc because snprintf() was not available. --- src/thread/Name.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/thread') 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 -# include #elif defined(HAVE_PRCTL) # include # ifdef PR_SET_NAME @@ -31,6 +30,10 @@ # endif #endif +#ifdef HAVE_THREAD_NAME +# include +#endif + static inline void SetThreadName(const char *name) { -- cgit v1.2.3