summaryrefslogtreecommitdiff
path: root/src/exe_action.c
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/exe_action.c
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/exe_action.c')
-rw-r--r--src/exe_action.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exe_action.c b/src/exe_action.c
index 6aa3fe4..87aee26 100644
--- a/src/exe_action.c
+++ b/src/exe_action.c
@@ -35,7 +35,9 @@ main(int argc, char** argv)
unsigned long act = 0;
/* 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, "dhp:a:")) != -1) {