diff options
author | Michael Biebl <biebl@debian.org> | 2013-03-22 09:39:00 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-03-22 09:39:00 +0100 |
commit | 3e8ab2d389e802df8ec28b36ebe3f968e760b2db (patch) | |
tree | d6c7def0f220aaa29a13ee2449d1174f8d3fcb28 /threads.c | |
parent | 906ed9df906fe3a52b042929130e6fc9a00b53a8 (diff) | |
download | rsyslog-3e8ab2d389e802df8ec28b36ebe3f968e760b2db.tar.gz rsyslog-3e8ab2d389e802df8ec28b36ebe3f968e760b2db.tar.bz2 rsyslog-3e8ab2d389e802df8ec28b36ebe3f968e760b2db.zip |
fix build on non-Linux systems
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -183,10 +183,10 @@ static void* thrdStarter(void *arg) assert(pThis != NULL); assert(pThis->pUsrThrdMain != NULL); +# if HAVE_PRCTL && defined PR_SET_NAME ustrncpy(thrdName+3, pThis->name, 20); dbgOutputTID((char*)thrdName); -# if HAVE_PRCTL && defined PR_SET_NAME /* set thread name - we ignore if the call fails, has no harsh consequences... */ if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) { DBGPRINTF("prctl failed, not setting thread name for '%s'\n", pThis->name); |