port: no HOST_NAME_MAX on FreeBSD, use LTTNG_HOST_NAME_MAX
[lttng-tools.git] / src / bin / lttng / commands / view.c
index d7632b62bd722259c9b2c23f5c01bf2e0028dc9c..a2623fe49e0ccb66b4baecbf1f27552d22ffad43 100644 (file)
@@ -51,7 +51,7 @@ static char *build_live_path(char *session_name)
 {
        int ret;
        char *path = NULL;
-       char hostname[HOST_NAME_MAX];
+       char hostname[LTTNG_HOST_NAME_MAX];
 
        ret = gethostname(hostname, sizeof(hostname));
        if (ret < 0) {
This page took 0.023818 seconds and 4 git commands to generate.