mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 03:20:41 +01:00
bugfix: solve compile problems on non-Linux platforms
Thanks to Michael Biebl for alerting us on this issue.
This commit is contained in:
parent
0dab9aa0c4
commit
aef0be0c17
@ -122,6 +122,7 @@ AC_CHECK_DECL([SCM_CREDENTIALS], [AC_DEFINE(HAVE_SCM_CREDENTIALS, [1], [set defi
|
||||
#include <sys/socket.h>])
|
||||
AC_CHECK_DECL([SO_TIMESTAMP], [AC_DEFINE(HAVE_SO_TIMESTAMP, [1], [set define])], [], [#include <sys/types.h>
|
||||
#include <sys/socket.h>])
|
||||
AC_CHECK_DECL([SYS_gettid], [AC_DEFINE(HAVE_SYS_gettid, [1], [set define])], [], [#include <sys/syscall.h>])
|
||||
AC_CHECK_MEMBER([struct sysinfo.uptime], [AC_DEFINE(HAVE_SYSINFO_UPTIME, [1], [set define])], [], [#include <sys/sysinfo.h>])
|
||||
|
||||
# Check for MAXHOSTNAMELEN
|
||||
|
||||
@ -303,7 +303,7 @@ static inline void dbgFuncDBRemoveMutexLock(dbgFuncDB_t *pFuncDB, pthread_mutex_
|
||||
void
|
||||
dbgOutputTID(char* name)
|
||||
{
|
||||
# ifdef HAVE_SYSCALL
|
||||
# if defined(HAVE_SYSCALL) && defined(HAVE_SYS_gettid)
|
||||
if(bOutputTidToStderr)
|
||||
fprintf(stderr, "thread tid %u, name '%s'\n",
|
||||
(unsigned)syscall(SYS_gettid), name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user