diff options
Diffstat (limited to 'devel/electron29/files/patch-third__party_libusb_src_libusb_os_threads__posix.c')
-rw-r--r-- | devel/electron29/files/patch-third__party_libusb_src_libusb_os_threads__posix.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-third__party_libusb_src_libusb_os_threads__posix.c b/devel/electron29/files/patch-third__party_libusb_src_libusb_os_threads__posix.c new file mode 100644 index 000000000000..494904b7f888 --- /dev/null +++ b/devel/electron29/files/patch-third__party_libusb_src_libusb_os_threads__posix.c @@ -0,0 +1,24 @@ +--- third_party/libusb/src/libusb/os/threads_posix.c.orig 2023-03-30 00:34:13 UTC ++++ third_party/libusb/src/libusb/os/threads_posix.c +@@ -19,9 +19,11 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +-#if defined(__linux__) || defined(__OpenBSD__) ++#if defined(__linux__) + # include <unistd.h> + # include <sys/syscall.h> ++#elif defined(__OpenBSD__) ++# include <unistd.h> + #elif defined(__APPLE__) + # include <mach/mach.h> + #elif defined(__CYGWIN__) +@@ -65,7 +67,7 @@ int usbi_get_tid(void) + #elif defined(__OpenBSD__) + /* The following only works with OpenBSD > 5.1 as it requires + real thread support. For 5.1 and earlier, -1 is returned. */ +- ret = syscall(SYS_getthrid); ++ ret = getthrid(); + #elif defined(__APPLE__) + ret = mach_thread_self(); + mach_port_deallocate(mach_task_self(), ret); |