summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-team-port.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/nm-setting-team-port.h')
-rw-r--r--libnm-core/nm-setting-team-port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-team-port.h b/libnm-core/nm-setting-team-port.h
index a9f3ff932..527ac4bce 100644
--- a/libnm-core/nm-setting-team-port.h
+++ b/libnm-core/nm-setting-team-port.h
@@ -21,6 +21,10 @@
#ifndef NM_SETTING_TEAM_PORT_H
#define NM_SETTING_TEAM_PORT_H
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
#include <nm-setting.h>
G_BEGIN_DECLS