mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
parent
9916032c7a
commit
5f521932b2
185 changed files with 7761 additions and 4020 deletions
|
@ -1,11 +0,0 @@
|
|||
--- a/src/privsep.c
|
||||
+++ b/src/privsep.c
|
||||
@@ -778,7 +778,7 @@ sig_got_chld(int sig)
|
||||
pid_t pid;
|
||||
|
||||
do {
|
||||
- pid = waitpid(WAIT_ANY, NULL, WNOHANG);
|
||||
+ pid = waitpid(-1, NULL, WNOHANG);
|
||||
if (pid == child_pid && cur_state < STATE_QUIT)
|
||||
cur_state = STATE_QUIT;
|
||||
} while (pid > 0 || (pid == -1 && errno == EINTR));
|
33
mlvpn/patches/020-remove-cdefs.patch
Normal file
33
mlvpn/patches/020-remove-cdefs.patch
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- a/src/vis.h.anc 2021-09-24 22:00:03.900321816 +0200
|
||||
+++ b/src/vis.h 2021-09-24 22:00:21.500028958 +0200
|
||||
@@ -79,7 +79,6 @@
|
||||
*/
|
||||
#define UNVIS_END 1 /* no more characters */
|
||||
|
||||
-#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
char *vis(char *, int, int, int);
|
||||
--- a/src/vis.h.anc 2021-09-24 22:05:19.543069573 +0200
|
||||
+++ b/src/vis.h 2021-09-24 22:06:00.430389216 +0200
|
||||
@@ -80,7 +80,9 @@
|
||||
#define UNVIS_END 1 /* no more characters */
|
||||
|
||||
|
||||
-__BEGIN_DECLS
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
char *vis(char *, int, int, int);
|
||||
int strvis(char *, const char *, int);
|
||||
int stravis(char **, const char *, int);
|
||||
@@ -93,6 +95,8 @@
|
||||
ssize_t strnunvis(char *, const char *, size_t)
|
||||
__attribute__ ((__bounded__(__string__,1,3)));
|
||||
|
||||
-__END_DECLS
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
|
||||
#endif /* !HAVE_STRNVIS || BROKEN_STRNVIS */
|
Loading…
Add table
Add a link
Reference in a new issue