diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2021-01-19 14:34:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-21 11:00:02 +0000 |
| commit | 567a8de3b08392f049b6a2e3ce7d2a5a8ba4e0ed (patch) | |
| tree | 1dce6335ba1eb58014ed486fbf6e751b5eca1eba | |
| parent | main: correct header for mode macros (diff) | |
client/server: switch to POSIX header for sockaddr_un
client.c:13:10: fatal error: 'linux/un.h' file not found
#include <linux/un.h>
^~~~~~~~~~~~
client.c:195:24: error: variable has incomplete type 'struct sockaddr_un'
struct sockaddr_un addr = {.sun_family = AF_UNIX};
^
client.c:195:12: note: forward declaration of 'struct sockaddr_un'
struct sockaddr_un addr = {.sun_family = AF_UNIX};
^
server.c:11:10: fatal error: 'linux/un.h' file not found
#include <linux/un.h>
^~~~~~~~~~~~
server.c:307:24: error: variable has incomplete type 'struct sockaddr_un'
struct sockaddr_un addr;
^
server.c:307:12: note: forward declaration of 'struct sockaddr_un'
struct sockaddr_un addr;
^
server.c:347:24: error: variable has incomplete type 'struct sockaddr_un'
struct sockaddr_un addr = {.sun_family = AF_UNIX};
^
server.c:347:12: note: forward declaration of 'struct sockaddr_un'
struct sockaddr_un addr = {.sun_family = AF_UNIX};
^
server.c:394:24: error: variable has incomplete type 'struct sockaddr_un'
struct sockaddr_un addr = {.sun_family = AF_UNIX};
^
server.c:394:12: note: forward declaration of 'struct sockaddr_un'
struct sockaddr_un addr = {.sun_family = AF_UNIX};
^
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | server.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ #include <errno.h> #include <sys/socket.h> -#include <linux/un.h> +#include <sys/un.h> #define LOG_MODULE "foot-client" #define LOG_ENABLE_DBG 0 @@ -8,7 +8,7 @@ #include <sys/socket.h> #include <sys/epoll.h> -#include <linux/un.h> +#include <sys/un.h> #include <tllist.h> |
