summaryrefslogtreecommitdiff
path: root/net-dialup/openl2tp/files/openl2tp-1.8-musl.patch
blob: 437f96f4d6fc923b48dd527277fee5890528594e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff -u openl2tp-1.8/cli/cli_readline.c openl2tp-1.8/cli/cli_readline.c
--- openl2tp-1.8/cli/cli_readline.c	2020-07-12 11:16:13.583798412 +0300
+++ openl2tp-1.8/cli/cli_readline.c	2020-07-12 11:35:50.872615494 +0300
@@ -18,12 +18,15 @@
  *
  *****************************************************************************/
 
+#define _GNU_SOURCE
+
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/stat.h>
-#include <sys/errno.h>
+#include <fcntl.h>
+#include <errno.h>
 #include <signal.h>
 
 #include <readline/readline.h>
@@ -633,7 +636,7 @@
 
 static int cli_rl_install_signal_handlers(void)
 {
-	__sighandler_t handler;
+	sighandler_t handler;
 
 	rl_catch_signals = 0;
 	rl_clear_signals();
unchanged:
--- openl2tp-1.8.orig/usl/usl_pid.c	2008-05-08 00:44:20.000000000 +0400
+++ openl2tp-1.8/usl/usl_pid.c	2020-07-12 10:29:47.047052036 +0300
@@ -26,6 +26,10 @@
 
 #include "usl.h"
 
+#ifndef WAIT_ANY
+#define WAIT_ANY (-1)
+#endif
+
 /* We maintain a list of child process pids and functions to call when
  * they exit.
  */
unchanged:
--- openl2tp-1.8.orig/l2tp_main.c	2010-02-12 22:09:23.000000000 +0300
+++ openl2tp-1.8/l2tp_main.c	2020-07-12 10:58:59.343655159 +0300
@@ -42,7 +42,7 @@
 #include <setjmp.h>
 #include <sys/utsname.h>
 
-#include <wait.h>
+#include <sys/wait.h>
 
 #include "usl.h"
 #include "l2tp_private.h"