diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-10-24 16:36:00 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-10-26 06:34:34 +0300 |
commit | 1ec00737da2b5792e78bb1a8578aee7952a2bdf2 (patch) | |
tree | aec7333debc7e4328e0f5592004a900a8c4601c8 | |
parent | b7b9b190b6d36d1f96a51d2791ffdc9f4e937c39 (diff) | |
download | accel-ppp-1ec00737da2b5792e78bb1a8578aee7952a2bdf2.tar.gz accel-ppp-1ec00737da2b5792e78bb1a8578aee7952a2bdf2.zip |
core: make ap_net.h self-contained
We need to include <sys/socket.h> to define 'socklen_t', <sys/types.h>
for 'ssize_t' and "list.h" for 'struct list_head'.
Also, let's include "libnetlink.h" so that we don't need a forward
declaration for 'struct rtnl_handle'.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
-rw-r--r-- | accel-pppd/include/ap_net.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/accel-pppd/include/ap_net.h b/accel-pppd/include/ap_net.h index 25121d9..91ebdd5 100644 --- a/accel-pppd/include/ap_net.h +++ b/accel-pppd/include/ap_net.h @@ -1,7 +1,11 @@ #ifndef __AP_NET_H #define __AP_NET_H -struct rtnl_handle; +#include <sys/socket.h> +#include <sys/types.h> + +#include "libnetlink.h" +#include "list.h" struct ap_net { struct list_head entry; |