Changeset View
Changeset View
Standalone View
Standalone View
sysutils/lttng-tools/files/patch-src_bin_lttng-sessiond_consumer.c
--- src/bin/lttng-sessiond/consumer.c.orig 2016-11-29 22:48:37 UTC | --- src/bin/lttng-sessiond/consumer.c.orig 2017-01-09 19:26:28 UTC | ||||
+++ src/bin/lttng-sessiond/consumer.c | +++ src/bin/lttng-sessiond/consumer.c | ||||
@@ -635,6 +635,9 @@ int consumer_set_network_uri(struct cons | @@ -17,6 +17,7 @@ | ||||
#define _LGPL_SOURCE | |||||
#include <assert.h> | |||||
+#include <limits.h> | |||||
#include <stdio.h> | |||||
#include <stdlib.h> | |||||
#include <string.h> | |||||
@@ -635,7 +636,7 @@ int consumer_set_network_uri(struct consumer_output *o | |||||
{ | { | ||||
int ret; | int ret; | ||||
char tmp_path[PATH_MAX]; | char tmp_path[PATH_MAX]; | ||||
+#if defined(__FreeBSD__) | - char hostname[HOST_NAME_MAX]; | ||||
+ const size_t HOST_NAME_MAX = sysconf(_SC_HOST_NAME_MAX); | + char hostname[_POSIX_HOST_NAME_MAX]; | ||||
+#endif | |||||
char hostname[HOST_NAME_MAX]; | |||||
struct lttng_uri *dst_uri = NULL; | struct lttng_uri *dst_uri = NULL; | ||||
/* Code flow error safety net. */ |