packages/libs/libudev-fbsd/patches/005-extern-c.patch
Daniel Golle 58f1de60f8 libudev-fbsd: update to git source as of 2017-12-16
Remove patches 001-fix-unused.patch and 002-replace-nitems.patch,
similar fixes to make libudev-fbsd compile were applied upstream.
Refresh remaining patches.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-02-09 18:25:24 +01:00

25 lines
357 B
Diff

--- a/src/libudev.h
+++ b/src/libudev.h
@@ -7,6 +7,11 @@
extern "C" {
#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct udev;
struct udev_device;
struct udev_list_entry;
@@ -76,6 +81,10 @@ void udev_monitor_unref(struct udev_moni
#ifdef __cplusplus
} /* extern "C" */
+#endif
+
+#ifdef __cplusplus
+} /* extern "C" */
#endif
#endif