summaryrefslogtreecommitdiff
path: root/libnm/nm-remote-connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-remote-connection.h')
-rw-r--r--libnm/nm-remote-connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm/nm-remote-connection.h b/libnm/nm-remote-connection.h
index c5912e44f8..23964a51b2 100644
--- a/libnm/nm-remote-connection.h
+++ b/libnm/nm-remote-connection.h
@@ -22,6 +22,10 @@
#ifndef __NM_REMOTE_CONNECTION_H__
#define __NM_REMOTE_CONNECTION_H__
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
#include <glib-object.h>
#include <dbus/dbus-glib.h>