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