summaryrefslogtreecommitdiff
path: root/package/cutter/patches/patch-cutter_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-09-11 06:03:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-09-11 06:03:02 +0200
commitab9b26ac83655f30c7297babf04efa56d3266563 (patch)
tree7d825331b466b869e1cc8d5291805ade2925f61c /package/cutter/patches/patch-cutter_c
parente7b6b54de4a0fd70ca950f7f08eea4e2dfad9972 (diff)
parentd6ce7a9b7c34b166d5e7e69aa840f628add622b4 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/cutter/patches/patch-cutter_c')
-rw-r--r--package/cutter/patches/patch-cutter_c17
1 files changed, 14 insertions, 3 deletions
diff --git a/package/cutter/patches/patch-cutter_c b/package/cutter/patches/patch-cutter_c
index 781c17401..03129f87e 100644
--- a/package/cutter/patches/patch-cutter_c
+++ b/package/cutter/patches/patch-cutter_c
@@ -1,7 +1,18 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- cutter-1.03.orig/cutter.c 2005-04-30 09:01:03.000000000 +0200
-+++ cutter-1.03/cutter.c 2008-10-09 11:32:40.000000000 +0200
-@@ -297,7 +297,7 @@ int send_rst(
++++ cutter-1.03/cutter.c 2011-08-24 18:49:58.830478484 +0200
+@@ -35,6 +35,10 @@
+ * improvment.
+ */
+
++#ifndef __packed
++#define __packed __attribute__((packed))
++#endif
++
+ #include <string.h>
+ #include <stdio.h>
+ #include <unistd.h>
+@@ -297,7 +301,7 @@ int send_rst(
pheader.placeholder=0;
pheader.protocol=IPPROTO_TCP;
pheader.tcp_length=htons(TCPHDR);
@@ -10,7 +21,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
/*
-@@ -419,7 +419,7 @@ int send_rst(
+@@ -419,7 +423,7 @@ int send_rst(
pheader.placeholder=0;
pheader.protocol=IPPROTO_TCP;
pheader.tcp_length=htons(TCPHDR);