Changes sent to libcofngi has not been merged yet,
so add compatibility defines to make all compile and work.

Signed-off-by: Krzysztof Opasiak <k.opas...@samsung.com>
---
 src/usbg.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/usbg.c b/src/usbg.c
index b1b5f44..dfaf66c 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -31,6 +31,15 @@
 #define CONFIGS_DIR "configs"
 #define FUNCTIONS_DIR "functions"
 
+/* Guards for older versions of libconfig */
+#ifndef CONFIG_FORMAT_ASSIGN
+#define CONFIG_FORMAT_ASSIGN CONFIG_FORMAT_DEFAULT
+#endif
+
+#ifndef CONFIG_FORMAT_NO_SEMICOLON
+#define CONFIG_FORMAT_NO_SEMICOLON CONFIG_FORMAT_DEFAULT
+#endif
+
 /**
  * @file usbg.c
  * @todo Handle buffer overflows
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to