]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Use linux/types.h to fix amd64 build
authorPhilip Craig <philipc@snapgear.com>
Tue, 18 Sep 2007 01:53:04 +0000 (11:53 +1000)
committerThomas Graf <tgraf@suug.ch>
Tue, 18 Sep 2007 10:37:50 +0000 (12:37 +0200)
10-amd64-linux-types.patch from Ubuntu:

   - In order to make libnl compilable on amd64 include linux/types.h
     rather than defining the types ourselves; necessary as other headers
     include that and get different definitions.

 -- Scott James Remnant <scott@ubuntu.com>  Wed, 22 Mar 2006 02:12:08 +0000

include/netlink-local.h

index a4cc6ce55db85af8c955ea45b02432dcce3d4fdd..3ab1b2743409b3483f07cd119ffa878414b8cddc 100644 (file)
 #define SOL_NETLINK 270
 #endif
 
-typedef uint8_t                __u8;
-typedef uint16_t       __u16;
-typedef int16_t                __s16;
-typedef uint32_t       __u32;
-typedef int32_t                __s32;
-typedef uint64_t       __u64;
+#include <linux/types.h>
 
 /* local header copies */
 #include <linux/if.h>