summaryrefslogtreecommitdiff
path: root/src/commit2.cpp
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2017-11-01 13:33:26 +0100
committerKim Hagen <kim.sidney@gmail.com>2017-11-01 13:33:26 +0100
commitb2654f613913987d685effc430a572927be87430 (patch)
treec6199ce65eb65807a1bbee8e2529bca6eb264c39 /src/commit2.cpp
parent0b2db35f54fb38ac484854d22a8b2f9460c21689 (diff)
downloadvyatta-cfg-b2654f613913987d685effc430a572927be87430.tar.gz
vyatta-cfg-b2654f613913987d685effc430a572927be87430.zip
only do "g_type_init()" if version is 2.35.0
Diffstat (limited to 'src/commit2.cpp')
-rw-r--r--src/commit2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commit2.cpp b/src/commit2.cpp
index ceee986..4594d08 100644
--- a/src/commit2.cpp
+++ b/src/commit2.cpp
@@ -159,7 +159,9 @@ main(int argc, char** argv)
char *commit_comment = NULL;
/* this is needed before calling certain glib functions */
+ #if !GLIB_CHECK_VERSION(2,35,0)
g_type_init();
+ #endif
//grab inputs
while ((ch = getopt(argc, argv, "xdpthsecoafb:rlC:")) != -1) {