patch-include_netlink-local_h 698 B

1234567891011121314151617181920
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- libnl-1.1.orig/include/netlink-local.h 2008-01-14 16:48:45.000000000 +0100
  3. +++ libnl-1.1/include/netlink-local.h 2009-05-29 00:17:59.000000000 +0200
  4. @@ -26,6 +26,7 @@
  5. #include <sys/socket.h>
  6. #include <inttypes.h>
  7. #include <assert.h>
  8. +#include <limits.h>
  9. #include <arpa/inet.h>
  10. #include <netdb.h>
  11. @@ -337,7 +337,7 @@ static inline int nl_cb_call(struct nl_c
  12. }
  13. #define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0]))
  14. -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
  15. +#define __offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
  16. #define __init __attribute__ ((constructor))
  17. #define __exit __attribute__ ((destructor))