#include <config.h>
#include <common/lttngerr.h>
+#include <common/defaults.h>
#include "poll.h"
int ret, fd;
char buf[64];
- poll_max_size = LTTNG_POLL_DEFAULT_SIZE;
+ poll_max_size = DEFAULT_POLL_SIZE;
- fd = open(LTTNG_EPOLL_PROC_PATH, O_RDONLY);
+ fd = open(COMPAT_EPOLL_PROC_PATH, O_RDONLY);
if (fd < 0) {
return;
}
poll_max_size = atoi(buf);
if (poll_max_size <= 0) {
/* Extra precaution */
- poll_max_size = LTTNG_POLL_DEFAULT_SIZE;
+ poll_max_size = DEFAULT_POLL_SIZE;
}
DBG("epoll set max size is %d", poll_max_size);