port: FreeBSD has no ENODATA, alias it to ENOATTR
[lttng-tools.git] / tests / regression / tools / live / live_test.c
index d5da03e4d7d4417ed7bdfee5e996430cc4204d85..4c56deece91321b8d07db210665481acbb46269b 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -31,6 +30,7 @@
 #include <bin/lttng-relayd/lttng-viewer-abi.h>
 #include <common/index/ctf-index.h>
 
+#include <common/compat/errno.h>
 #include <common/compat/endian.h>
 
 #define SESSION1 "test1"
@@ -97,7 +97,7 @@ ssize_t lttng_live_send(int fd, const void *buf, size_t len)
 }
 
 static
-int connect_viewer(char *hostname)
+int connect_viewer(const char *hostname)
 {
        struct hostent *host;
        struct sockaddr_in server_addr;
This page took 0.030685 seconds and 4 git commands to generate.