cec: place in libudev include in an extern C block. fixes compilations on older libud...
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 30 Dec 2011 14:28:38 +0000 (15:28 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 30 Dec 2011 14:28:45 +0000 (15:28 +0100)
src/lib/AdapterDetection.cpp

index b304e43561d2eb5c0961a425b140b35bda88cd6a..de1da7c1f3fb2c435d1fbc6f255ec0a9b86eb192 100644 (file)
 static GUID USB_RAW_GUID =  { 0xA5DCBF10, 0x6530, 0x11D2, { 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED } };
 #elif defined(HAVE_LIBUDEV)
 #include <dirent.h>
-#include <libudev.h>
 #include <poll.h>
+extern "C" {
+#include <libudev.h>
+}
 #endif
 
 #define CEC_VID 0x2548