[PATCH v2 02/16] libusbg: Add guards for libconfig version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.opasiak@xxxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux