about summary refs log tree commit diff
path: root/libnm/nm-remote-connection-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-remote-connection-private.h')
-rw-r--r--libnm/nm-remote-connection-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm/nm-remote-connection-private.h b/libnm/nm-remote-connection-private.h
index e3f35428..5ff282f4 100644
--- a/libnm/nm-remote-connection-private.h
+++ b/libnm/nm-remote-connection-private.h
@@ -21,6 +21,10 @@
 #ifndef __NM_REMOTE_CONNECTION_PRIVATE_H__
 #define __NM_REMOTE_CONNECTION_PRIVATE_H__
 
+#if !((NETWORKMANAGER_COMPILATION) & NM_NETWORKMANAGER_COMPILATION_WITH_LIBNM_PRIVATE)
+#error Cannot use this header.
+#endif
+
 #define NM_REMOTE_CONNECTION_INIT_RESULT "init-result"
 
 typedef enum {