--- libnl-2.0/include/netlink-types.h 2011-01-31 19:51:41.000000000 -0500 +++ libnl-2.0/include/netlink-types.h 2011-01-31 19:51:23.000000000 -0500 @@ -26,6 +26,20 @@ #define NL_MSG_CRED_PRESENT 1 +#if defined(_SC_ULONG_MAX) +# if defined(ULONG_MAX) +# undef ULONG_MAX +# endif +# define ULONG_MAX sysconf (_SC_ULONG_MAX) +#endif + +#if defined(_SC_UINT_MAX) +# if defined(UINT_MAX) +# undef UINT_MAX +# endif +# define UINT_MAX sysconf (_SC_UINT_MAX) +#endif + struct nl_cache_ops; struct nl_sock; struct nl_object; --- libnl-2.0/lib/utils.c 2011-01-31 19:52:08.000000000 -0500 +++ libnl-2.0/lib/utils.c 2011-01-31 19:52:02.000000000 -0500 @@ -19,6 +19,7 @@ #include #include #include +#include /** * Debug level