From acef284695dd1e1bd43d0bc9e6940bb2bb1f966b Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Fri, 17 Nov 2017 16:50:29 +0100 Subject: [PATCH] libs/libudev-fbsd: add patch to surround symbols with extern C Signed-off-by: Mirko Vogt --- libs/libudev-fbsd/patches/005-extern-c.patch | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libs/libudev-fbsd/patches/005-extern-c.patch diff --git a/libs/libudev-fbsd/patches/005-extern-c.patch b/libs/libudev-fbsd/patches/005-extern-c.patch new file mode 100644 index 000000000..de3ae3524 --- /dev/null +++ b/libs/libudev-fbsd/patches/005-extern-c.patch @@ -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 + #include + ++ ++#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