summaryrefslogtreecommitdiff
path: root/package/cutter/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-24 12:15:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-24 12:15:38 +0100
commitc2d670541e17b50336b218fa2b55aa5790159b4e (patch)
tree1099c678bf8f73bc3b2539c894aa689c1c436ba5 /package/cutter/patches
parent1b19f691fa518cca3ce81ba501148112b1660559 (diff)
fix musl compile
Diffstat (limited to 'package/cutter/patches')
-rw-r--r--package/cutter/patches/patch-cutter_c16
1 files changed, 13 insertions, 3 deletions
diff --git a/package/cutter/patches/patch-cutter_c b/package/cutter/patches/patch-cutter_c
index 03129f87e..0842a6dd9 100644
--- a/package/cutter/patches/patch-cutter_c
+++ b/package/cutter/patches/patch-cutter_c
@@ -1,6 +1,6 @@
$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 2011-08-24 18:49:58.830478484 +0200
++++ cutter-1.03/cutter.c 2013-12-24 12:14:44.000000000 +0100
@@ -35,6 +35,10 @@
* improvment.
*/
@@ -12,7 +12,17 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
#include <string.h>
#include <stdio.h>
#include <unistd.h>
-@@ -297,7 +301,7 @@ int send_rst(
+@@ -50,7 +54,9 @@
+ #include <linux/if_ether.h>
+ #include <fcntl.h>
+ #include <netpacket/packet.h>
++#if defined(__GLIBC__)
+ #include <net/ethernet.h> /* the L2 protocols */
++#endif
+ #include <linux/sockios.h>
+ #include <sys/ioctl.h>
+ #include <netinet/in.h>
+@@ -297,7 +303,7 @@ int send_rst(
pheader.placeholder=0;
pheader.protocol=IPPROTO_TCP;
pheader.tcp_length=htons(TCPHDR);
@@ -21,7 +31,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
/*
-@@ -419,7 +423,7 @@ int send_rst(
+@@ -419,7 +425,7 @@ int send_rst(
pheader.placeholder=0;
pheader.protocol=IPPROTO_TCP;
pheader.tcp_length=htons(TCPHDR);