82dc08e41f
This also affects py-{ailment,archinfo,cle,pyvex,claripy}, which get updated to the same version at the same time. I could not find any specific release notes or changelog. The whole list of changes can be found at: https://github.com/angr/angr/compare/v9.0.4378...v9.0.7833.
20 lines
802 B
C
20 lines
802 B
C
$NetBSD: patch-native_log.c,v 1.2 2021/06/02 23:27:11 khorben Exp $
|
|
|
|
Fix build on NetBSD.
|
|
|
|
--- native/log.c.orig 2021-05-18 20:52:07.000000000 +0000
|
|
+++ native/log.c
|
|
@@ -112,10 +112,10 @@ void logLog(enum llevel_t ll, const char
|
|
if (logLevels[ll].print_funcline) {
|
|
#ifdef __FreeBSD__
|
|
dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, (pid_t)pthread_getthreadid_np, fn, ln);
|
|
-#elif __OpenBSD__
|
|
- dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, getpid(), fn, ln);
|
|
-#else
|
|
+#elif defined(__linux__)
|
|
dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, (pid_t)syscall(__NR_gettid), fn, ln);
|
|
+#else
|
|
+ dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, getpid(), fn, ln);
|
|
#endif
|
|
}
|
|
|