$OpenBSD: patch-native_log_c,v 1.2 2019/07/23 19:51:08 kn Exp $

Replace linx specific gettid(2) with getpid(2).

Index: native/log.c
--- native/log.c.orig
+++ native/log.c
@@ -107,7 +107,7 @@ void logLog(enum llevel_t ll, const char *fn, int ln, 
         dprintf(log_fd, "%s", logLevels[ll].prefix);
     }
     if (logLevels[ll].print_funcline) {
-        dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, (pid_t)syscall(__NR_gettid), fn, ln);
+        dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, getpid(), fn, ln);
     }
 
     va_list args;
