Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
276a0d95
Commit
276a0d95
authored
Jan 21, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread/Name: include stdio.h if HAVE_PRCTL
Caused a build failure with uClibc because snprintf() was not available.
parent
384b6c82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
NEWS
NEWS
+1
-0
Name.hxx
src/thread/Name.hxx
+4
-1
No files found.
NEWS
View file @
276a0d95
ver 0.19.9 (not yet released)
ver 0.19.9 (not yet released)
* fix build failure with uClibc
ver 0.19.8 (2015/01/14)
ver 0.19.8 (2015/01/14)
* input
* input
...
...
src/thread/Name.hxx
View file @
276a0d95
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#if defined(HAVE_PTHREAD_SETNAME_NP) && !defined(__NetBSD__)
#if defined(HAVE_PTHREAD_SETNAME_NP) && !defined(__NetBSD__)
# define HAVE_THREAD_NAME
# define HAVE_THREAD_NAME
# include <pthread.h>
# include <pthread.h>
# include <stdio.h>
#elif defined(HAVE_PRCTL)
#elif defined(HAVE_PRCTL)
# include <sys/prctl.h>
# include <sys/prctl.h>
# ifdef PR_SET_NAME
# ifdef PR_SET_NAME
...
@@ -31,6 +30,10 @@
...
@@ -31,6 +30,10 @@
# endif
# endif
#endif
#endif
#ifdef HAVE_THREAD_NAME
# include <stdio.h>
#endif
static
inline
void
static
inline
void
SetThreadName
(
const
char
*
name
)
SetThreadName
(
const
char
*
name
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment