This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
libs/libudev-fbsd: add patch to surround symbols with extern C
Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
lilik-openwrt-22.03
Mirko Vogt
7 years ago
parent
aa4440ff4c
commit
acef284695
1 changed files
with
24 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+24
-0
libs/libudev-fbsd/patches/005-extern-c.patch
+ 24
- 0
libs/libudev-fbsd/patches/005-extern-c.patch
View File
@ -0,0 +1,24 @@
diff -ruN libudev-fbsd-20160820/src/libudev.h libudev-fbsd-20160820.mod/src/libudev.h
--- libudev-fbsd-20160820/src/libudev.h 2017-11-17 16:46:56.705435146 +0100
+++ libudev-fbsd-20160820.mod/src/libudev.h 2017-11-17 16:48:07.276021522 +0100
@@ -11,6 +11,11 @@
#include <fcntl.h>
#include <unistd.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct udev;
struct udev_device;
struct udev_list_entry;
@@ -83,4 +88,8 @@
struct udev_monitor *udev_monitor);
void udev_monitor_unref(struct udev_monitor *udev_monitor);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif
Write
Preview
Loading…
Cancel
Save