mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 23:50:30 -04:00
LTTng stands for Linux Trace Toolkit: next generation. It's a modern toolkit for tracing Linux (And now FreeBSD, only userspace now) programs. PR: 216142 Submitted by: mmokhi Reported by: mmokhi Reviewed by: feld, mat Approved by: feld, mat (mentors) Differential Revision: https://reviews.freebsd.org/D9200
14 lines
362 B
C
14 lines
362 B
C
--- tests/regression/ust/ust-dl/prog.c.orig 2017-01-12 17:19:54 UTC
|
|
+++ tests/regression/ust/ust-dl/prog.c
|
|
@@ -21,7 +21,11 @@ int main(int argc, char **argv)
|
|
if (!h0) {
|
|
goto get_error;
|
|
}
|
|
+#if defined(__FreeBSD__)
|
|
+ h1 = dlopen("libfoo.so", RTLD_LAZY);
|
|
+#else
|
|
h1 = dlmopen(LM_ID_BASE, "libfoo.so", RTLD_LAZY);
|
|
+#endif
|
|
if (!h1) {
|
|
goto get_error;
|
|
}
|