about summary refs log tree commit diff
path: root/bits/dlfcn.h
diff options
context:
space:
mode:
Diffstat (limited to 'bits/dlfcn.h')
-rw-r--r--bits/dlfcn.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/bits/dlfcn.h b/bits/dlfcn.h
index 79604fe8ff..7c33694018 100644
--- a/bits/dlfcn.h
+++ b/bits/dlfcn.h
@@ -17,8 +17,9 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef	_BITS_DLFCN_H
-#define	_BITS_DLFCN_H 1
+#ifndef _DLFCN_H
+# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
+#endif
 
 /* The MODE argument to `dlopen' contains one of the following: */
 #define RTLD_LAZY	0x001	/* Lazy function call binding.  */
@@ -29,5 +30,3 @@
    the symbols of the loaded object and its dependencies are made
    visible as if the object were linked directly into the program.  */
 #define RTLD_GLOBAL	0x100
-
-#endif	/* bits/dlfcn.h */