mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update mptcpd to v0.9 and simplify patch
This commit is contained in:
parent
eedbfc56b7
commit
7a2e7ae1e9
3 changed files with 28 additions and 172 deletions
16
mptcpd/patches/stub_error_h.patch
Normal file
16
mptcpd/patches/stub_error_h.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- a/src/error.h
|
||||
+++ b/src/error.h
|
||||
@@ -0,0 +1,13 @@
|
||||
+#ifndef _ERROR_H
|
||||
+#define _ERROR_H 1
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
+// mimic the behaviour of https://man7.org/linux/man-pages/man3/error.3.html
|
||||
+void error(int status, int errnum, const char *format, ...)
|
||||
+{
|
||||
+ fprintf(stderr, "Error %d: %s", errnum, format);
|
||||
+ if (status != 0) exit(status);
|
||||
+}
|
||||
+#endif
|
Loading…
Add table
Add a link
Reference in a new issue