summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-10-24 16:36:00 +0200
committerDmitry Kozlov <xeb@mail.ru>2018-10-26 06:34:34 +0300
commit1ec00737da2b5792e78bb1a8578aee7952a2bdf2 (patch)
treeaec7333debc7e4328e0f5592004a900a8c4601c8
parentb7b9b190b6d36d1f96a51d2791ffdc9f4e937c39 (diff)
downloadaccel-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.h6
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;