summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lasso/utils.h7
-rw-r--r--tests/login_tests.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/lasso/utils.h b/lasso/utils.h
index 4766420e..6fe5d02c 100644
--- a/lasso/utils.h
+++ b/lasso/utils.h
@@ -372,4 +372,11 @@
/* Get a printable extract for error messages */
char* lasso_safe_prefix_string(const char *str, gsize length);
+/* GLIB bacward-compatibility */
+#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 16)
+int g_strcmp0 (const char *str1,
+ const char *str2);
+#endif
+
+
#endif /* __LASSO_UTILS_H__ */
diff --git a/tests/login_tests.c b/tests/login_tests.c
index d33c03f5..eec03584 100644
--- a/tests/login_tests.c
+++ b/tests/login_tests.c
@@ -28,6 +28,7 @@
#include <lasso/lasso.h>
#include <glib.h>
+#include "utils.h"
static char*