mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update MLVPN
This commit is contained in:
parent
527197973f
commit
63b58f3f76
5 changed files with 49 additions and 7 deletions
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