netinet/in.h is required for struct sockaddr_in

main.c:739:24: error: variable has incomplete type 'struct sockaddr_in'
    struct sockaddr_in serv_addr;
This commit is contained in:
Pietro Cerutti 2014-10-02 10:14:55 +02:00
parent 283b8672a2
commit a9139222fb

1
main.c
View File

@ -59,6 +59,7 @@
#include <grp.h> #include <grp.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h>
#include "telegram.h" #include "telegram.h"
#include "loop.h" #include "loop.h"