freebsd-ports/sysutils/lttng-tools/files/patch-src_common_compat_compat-poll.c
Mahdi Mokhtari a8416c340c Adding sysutils/lttng-ust and sysutils/lttng-tools.
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
2017-02-11 15:36:17 +00:00

14 lines
368 B
C

--- src/common/compat/compat-poll.c.orig 2017-01-13 22:38:05 UTC
+++ src/common/compat/compat-poll.c
@@ -112,7 +112,11 @@ int compat_poll_create(struct lttng_poll
if (!poll_max_size) {
ERR("poll_max_size not initialized yet");
+#if defined(__FreeBSD__)
+ poll_max_size = DEFAULT_POLL_SIZE;
+#else
goto error;
+#endif
}
/* Don't bust the limit here */