build: modernize a bit (pptp port)

parent 09f58265
...@@ -11,8 +11,6 @@ nm_l2tp_auth_dialog_CPPFLAGS = \ ...@@ -11,8 +11,6 @@ nm_l2tp_auth_dialog_CPPFLAGS = \
-DUIDIR=\""$(uidir)"\" \ -DUIDIR=\""$(uidir)"\" \
-DBINDIR=\""$(bindir)"\" \ -DBINDIR=\""$(bindir)"\" \
-DG_DISABLE_DEPRECATED \ -DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DVERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\"
nm_l2tp_auth_dialog_SOURCES = \ nm_l2tp_auth_dialog_SOURCES = \
......
...@@ -20,8 +20,6 @@ libnm_l2tp_properties_la_CFLAGS = \ ...@@ -20,8 +20,6 @@ libnm_l2tp_properties_la_CFLAGS = \
-DICONDIR=\""$(datadir)/pixmaps"\" \ -DICONDIR=\""$(datadir)/pixmaps"\" \
-DUIDIR=\""$(uidir)"\" \ -DUIDIR=\""$(uidir)"\" \
-DG_DISABLE_DEPRECATED \ -DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DVERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\"
libnm_l2tp_properties_la_LIBADD = \ libnm_l2tp_properties_la_LIBADD = \
......
...@@ -315,7 +315,9 @@ plugin_init (void) ...@@ -315,7 +315,9 @@ plugin_init (void)
DBusGConnection *bus; DBusGConnection *bus;
GError *err = NULL; GError *err = NULL;
#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init (); g_type_init ();
#endif
g_message ("nm-l2tp-ppp-plugin: (%s): initializing", __func__); g_message ("nm-l2tp-ppp-plugin: (%s): initializing", __func__);
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <ctype.h> #include <ctype.h>
#include <locale.h>
#include <errno.h> #include <errno.h>
#include <sys/socket.h> #include <sys/socket.h>
...@@ -1634,7 +1635,9 @@ main (int argc, char *argv[]) ...@@ -1634,7 +1635,9 @@ main (int argc, char *argv[])
{NULL} {NULL}
}; };
#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init (); g_type_init ();
#endif
/* locale will be set according to environment LC_* variables */ /* locale will be set according to environment LC_* variables */
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment