Skip to content

Commit

Permalink
One last try to fix the tid support in FreeBSD
Browse files Browse the repository at this point in the history
If this doesn't work, I'm disabling it until I can build out my own freebsd
compile setup
  • Loading branch information
Beirdo committed Jun 18, 2011
1 parent 58fa764 commit 6e4dda9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/libmythbase.pro
Expand Up @@ -98,7 +98,7 @@ linux {
freebsd {
SOURCES += mythcdrom-freebsd.cpp
HEADERS += mythcdrom-freebsd.h
LIBS += -lthr
LIBS += -lthr -lc
}

use_hidesyms {
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythlogging.cpp
Expand Up @@ -450,7 +450,7 @@ void setThreadTid( LoggingItem_t *item )
tid = (int64_t)syscall(SYS_gettid);
#elif defined(__FreeBSD__)
long lwpid;
thr_self( &lwpid );
int dummy = thr_self( &lwpid );
tid = (int64_t)lwpid;
#elif CONFIG_DARWIN
tid = (int64_t)mach_thread_self();
Expand Down

0 comments on commit 6e4dda9

Please sign in to comment.