BSD: Add thread ID support for OpenBSD > 5.1
authorPete Batard <pete@akeo.ie>
Tue, 8 May 2012 11:10:59 +0000 (12:10 +0100)
committerPete Batard <pete@akeo.ie>
Tue, 8 May 2012 11:10:59 +0000 (12:10 +0100)
commit6d47fa1bc52562f673c30e5fd36f8ae44ed102e8
tree862e02d57dbe49edb18a07d52109fa3a56d1efbd
parent00d6fed8f26418b00ab9177d67d53af7328ec127
BSD: Add thread ID support for OpenBSD > 5.1

* Uses syscall(SYS_getthrid) which requires real thread support,
  currently only available in 5.1-current (but not 5.1-release).
  For OpenBSD <= 5.1, -1 will be returned for the thread ID.
libusb/os/threads_posix.c
libusb/version.h