From dec2ea357d7f54c986d06a06b8233dd1a7c85245 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 6 Jul 2009 15:13:28 -0400 Subject: [PATCH] Declare struct ucred in handlers.h and netlink.h Both files refer to it. The sources including those files are not guaranteed to include sys/socket.h to ensure that struct ucred is defined. --- include/netlink/handlers.h | 1 + include/netlink/netlink.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/netlink/handlers.h b/include/netlink/handlers.h index 266dc44..f373f58 100644 --- a/include/netlink/handlers.h +++ b/include/netlink/handlers.h @@ -25,6 +25,7 @@ extern "C" { struct nl_cb; struct nl_sock; struct nl_msg; +struct ucred; /** * @name Callback Typedefs diff --git a/include/netlink/netlink.h b/include/netlink/netlink.h index e8a75fd..689b755 100644 --- a/include/netlink/netlink.h +++ b/include/netlink/netlink.h @@ -36,6 +36,8 @@ extern "C" { #endif +struct ucred; + extern int nl_debug; extern struct nl_dump_params nl_debug_dp; -- 2.40.0