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.
This commit is contained in:
Pavel Roskin 2009-07-06 15:13:28 -04:00 committed by Thomas Graf
parent ef8ba32e0c
commit dec2ea357d
2 changed files with 3 additions and 0 deletions

View file

@ -25,6 +25,7 @@ extern "C" {
struct nl_cb;
struct nl_sock;
struct nl_msg;
struct ucred;
/**
* @name Callback Typedefs

View file

@ -36,6 +36,8 @@
extern "C" {
#endif
struct ucred;
extern int nl_debug;
extern struct nl_dump_params nl_debug_dp;