summary refs log tree commit diff
path: root/libnm-core/nm-keyfile-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-core/nm-keyfile-internal.h')
-rw-r--r--libnm-core/nm-keyfile-internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm-core/nm-keyfile-internal.h b/libnm-core/nm-keyfile-internal.h
index 5b709c02..157b9fe8 100644
--- a/libnm-core/nm-keyfile-internal.h
+++ b/libnm-core/nm-keyfile-internal.h
@@ -22,6 +22,10 @@
 #ifndef __NM_KEYFILE_INTERNAL_H__
 #define __NM_KEYFILE_INTERNAL_H__
 
+#if !((NETWORKMANAGER_COMPILATION) & NM_NETWORKMANAGER_COMPILATION_WITH_LIBNM_CORE_INTERNAL)
+#error Cannot use this header.
+#endif
+
 #include <sys/types.h>
 
 #include "nm-connection.h"