mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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};
^
This commit is contained in:
parent
3c379b243b
commit
567a8de3b0
2 changed files with 2 additions and 2 deletions
2
server.c
2
server.c
|
|
@ -8,7 +8,7 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/epoll.h>
|
||||
|
||||
#include <linux/un.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include <tllist.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue