summaryrefslogtreecommitdiff
path: root/cleopatre/buildroot/package/tcpdump/tcpdump.00-extern-inline-fixup.patch
diff options
context:
space:
mode:
authorlefranc2008-08-01 09:25:43 +0000
committerlefranc2008-08-01 09:25:43 +0000
commit9a2bcc0b92b392f1f21cd26927515e4d49bc128e (patch)
treed0bd193c764606c4c6e4b4568ef08d0ff3324b72 /cleopatre/buildroot/package/tcpdump/tcpdump.00-extern-inline-fixup.patch
parentd0cc0304ed6eaf72116743e13e5b3b3cbfd878bb (diff)
- import of buildroot original sources (20080729 version)
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2704 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre/buildroot/package/tcpdump/tcpdump.00-extern-inline-fixup.patch')
-rw-r--r--cleopatre/buildroot/package/tcpdump/tcpdump.00-extern-inline-fixup.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/cleopatre/buildroot/package/tcpdump/tcpdump.00-extern-inline-fixup.patch b/cleopatre/buildroot/package/tcpdump/tcpdump.00-extern-inline-fixup.patch
new file mode 100644
index 0000000000..9236f638c6
--- /dev/null
+++ b/cleopatre/buildroot/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));