Commit 9c2c4e05 authored by Dan Williams's avatar Dan Williams

libnm-glib: fix build on older glib without g_clear_object()

parent 8ed02c30
......@@ -45,7 +45,7 @@
#define g_clear_object(object_ptr) \
G_STMT_START { \
GObject **__obj_p = object_ptr; \
GObject **__obj_p = (gpointer) (object_ptr); \
if (*__obj_p) { \
g_object_unref (*__obj_p); \
*__obj_p = NULL; \
......
......@@ -25,6 +25,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-connection.h>
#include <nm-setting-connection.h>
#include <nm-setting-wireless.h>
......
......@@ -24,6 +24,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-bond.h>
#include <nm-utils.h>
......
......@@ -25,6 +25,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-bluetooth.h>
......
......@@ -25,6 +25,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-wired.h>
#include <nm-setting-pppoe.h>
......
......@@ -25,6 +25,8 @@
#include <linux/if_infiniband.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-infiniband.h>
#include <nm-utils.h>
......
......@@ -24,6 +24,8 @@
#include <config.h>
#include <string.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-gsm.h>
#include <nm-setting-cdma.h>
......
......@@ -24,6 +24,8 @@
#include <config.h>
#include <string.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-olpc-mesh.h>
......
......@@ -24,6 +24,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-vlan.h>
#include <nm-utils.h>
......
......@@ -25,6 +25,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-wireless.h>
#include <nm-setting-wireless-security.h>
......
......@@ -25,6 +25,8 @@
#include <string.h>
#include <netinet/ether.h>
#include "nm-glib-compat.h"
#include <nm-setting-connection.h>
#include <nm-setting-wimax.h>
......
......@@ -21,9 +21,12 @@
#include <config.h>
#include <ctype.h>
#include <string.h>
#include <NetworkManager.h>
#include <dbus/dbus-glib-lowlevel.h>
#include "nm-glib-compat.h"
#include <NetworkManager.h>
#include "nm-secret-agent.h"
#include "nm-glib-enum-types.h"
#include "nm-glib-marshal.h"
......
......@@ -23,6 +23,8 @@
#include <config.h>
#include <string.h>
#include "nm-glib-compat.h"
#include <nm-connection.h>
#include <nm-setting-connection.h>
#include <nm-setting-wimax.h>
......
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