]> granicus.if.org Git - libnl/commitdiff
Declare struct ucred in handlers.h and netlink.h
authorPavel Roskin <proski@gnu.org>
Mon, 6 Jul 2009 19:13:28 +0000 (15:13 -0400)
committerThomas Graf <tgr@plip.localdomain>
Mon, 20 Jul 2009 09:47:22 +0000 (11:47 +0200)
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
include/netlink/netlink.h

index 266dc4492e99d95617b0cf65e1a24da519b6d263..f373f58e37d46f0d1fc54d1fddcef8fd6fafefc0 100644 (file)
@@ -25,6 +25,7 @@ extern "C" {
 struct nl_cb;
 struct nl_sock;
 struct nl_msg;
+struct ucred;
 
 /**
  * @name Callback Typedefs
index e8a75fd599ffe3e10c13737b10f47b2fb87c2472..689b75555d5db807e2590552f78731460c73aa1d 100644 (file)
@@ -36,6 +36,8 @@
 extern "C" {
 #endif
 
+struct ucred;
+
 extern int nl_debug;
 extern struct nl_dump_params nl_debug_dp;