summaryrefslogtreecommitdiff
path: root/package/linux-atm/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-08-20 18:56:29 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-08-20 18:56:29 +0200
commitc5dc60b664fcbba2642346c4b80fc407264337b7 (patch)
tree94ce501a3b605a2fadd91487c43e2a2de290e005 /package/linux-atm/patches
parent41335546320e003cabf183b2963176d814b63883 (diff)
fix musl compile
Diffstat (limited to 'package/linux-atm/patches')
-rw-r--r--package/linux-atm/patches/patch-src_ilmid_io_c15
-rw-r--r--package/linux-atm/patches/patch-src_mpoad_io_c18
-rw-r--r--package/linux-atm/patches/patch-src_sigd_atmsigd_c11
3 files changed, 44 insertions, 0 deletions
diff --git a/package/linux-atm/patches/patch-src_ilmid_io_c b/package/linux-atm/patches/patch-src_ilmid_io_c
new file mode 100644
index 000000000..9b88b0b49
--- /dev/null
+++ b/package/linux-atm/patches/patch-src_ilmid_io_c
@@ -0,0 +1,15 @@
+--- linux-atm-2.5.1.orig/src/ilmid/io.c 2007-07-11 18:07:57.000000000 +0200
++++ linux-atm-2.5.1/src/ilmid/io.c 2013-08-15 21:40:35.168523713 +0200
+@@ -48,6 +48,12 @@
+ be manually configured (after ilmid has
+ registered the "official" address) - HACK */
+
++#ifndef SUN_LEN
++# include <string.h> /* For prototype of `strlen'. */
++ /* Evaluate to actual length of the `sockaddr_un' structure. */
++# define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path))
++#endif
++
+ extern SysGroup *remsys;
+ extern State ilmi_state;
+ static short atm_itf = -1; /* bad value */
diff --git a/package/linux-atm/patches/patch-src_mpoad_io_c b/package/linux-atm/patches/patch-src_mpoad_io_c
new file mode 100644
index 000000000..14dd75d00
--- /dev/null
+++ b/package/linux-atm/patches/patch-src_mpoad_io_c
@@ -0,0 +1,18 @@
+--- linux-atm-2.5.1.orig/src/mpoad/io.c 2007-12-11 18:46:12.000000000 +0100
++++ linux-atm-2.5.1/src/mpoad/io.c 2013-08-17 14:41:53.542968628 +0200
+@@ -10,14 +10,7 @@
+ #include <errno.h>
+ #include <sys/ioctl.h>
+ #include <sys/param.h> /* for OPEN_MAX */
+-#if __GLIBC__ >= 2
+-#include <sys/poll.h>
+-#else /* ugly hack to make it compile on RH 4.2 - WA */
+-#include <syscall.h>
+-#include <linux/poll.h>
+-#define SYS_poll 168
+-_syscall3(int,poll,struct pollfd *,ufds,unsigned int,nfds,int,timeout);
+-#endif
++#include <poll.h>
+ #include <atm.h>
+ #include <linux/types.h>
+ #include <linux/atmioc.h>
diff --git a/package/linux-atm/patches/patch-src_sigd_atmsigd_c b/package/linux-atm/patches/patch-src_sigd_atmsigd_c
new file mode 100644
index 000000000..7eb31abf9
--- /dev/null
+++ b/package/linux-atm/patches/patch-src_sigd_atmsigd_c
@@ -0,0 +1,11 @@
+--- linux-atm-2.5.1.orig/src/sigd/atmsigd.c 2004-09-25 13:25:48.000000000 +0200
++++ linux-atm-2.5.1/src/sigd/atmsigd.c 2013-08-15 21:22:05.226477574 +0200
+@@ -517,7 +517,7 @@ int main(int argc,char **argv)
+ exit(0);
+ }
+ }
+- (void) on_exit(trace_on_exit,NULL);
++ (void) atexit(trace_on_exit);
+ poll_loop();
+ close_all();
+ for (sig = entities; sig; sig = sig->next) stop_saal(&sig->saal);