diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-05-15 11:24:27 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-05-15 11:24:27 +0000 |
commit | 014ad48f5f026e0b6cf60d54a6db1f35382693ac (patch) | |
tree | 3b1631284d9e8afe2b208b259d1133bde742fee1 /package/tcpdump/tcpdump.00-extern-inline-fixup.patch | |
parent | c1efa9b291f0aa1453ea6359cc6638c0e75b2ca7 (diff) |
- bump version
Diffstat (limited to 'package/tcpdump/tcpdump.00-extern-inline-fixup.patch')
-rw-r--r-- | package/tcpdump/tcpdump.00-extern-inline-fixup.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/tcpdump/tcpdump.00-extern-inline-fixup.patch b/package/tcpdump/tcpdump.00-extern-inline-fixup.patch new file mode 100644 index 000000000..9236f638c --- /dev/null +++ b/package/tcpdump/tcpdump.00-extern-inline-fixup.patch @@ -0,0 +1,30 @@ +--- tcpdump-3.9.5.oorig/tcpdump-stdinc.h 2006-06-23 04:07:27.000000000 +0200 ++++ tcpdump-3.9.5/tcpdump-stdinc.h 2007-05-14 10:26:25.000000000 +0200 +@@ -149,15 +149,15 @@ typedef char* caddr_t; + #undef htonl + #undef htons + +- extern __inline__ unsigned long __ntohl (unsigned long x); +- extern __inline__ unsigned short __ntohs (unsigned short x); ++ static __inline__ unsigned long __ntohl (unsigned long x); ++ static __inline__ unsigned short __ntohs (unsigned short x); + + #define ntohl(x) __ntohl(x) + #define ntohs(x) __ntohs(x) + #define htonl(x) __ntohl(x) + #define htons(x) __ntohs(x) + +- extern __inline__ unsigned long __ntohl (unsigned long x) ++ static __inline__ unsigned long __ntohl (unsigned long x) + { + __asm__ ("xchgb %b0, %h0\n\t" /* swap lower bytes */ + "rorl $16, %0\n\t" /* swap words */ +@@ -166,7 +166,7 @@ typedef char* caddr_t; + return (x); + } + +- extern __inline__ unsigned short __ntohs (unsigned short x) ++ static __inline__ unsigned short __ntohs (unsigned short x) + { + __asm__ ("xchgb %b0, %h0" /* swap bytes */ + : "=q" (x) : "0" (x)); |