summaryrefslogtreecommitdiff
path: root/lib/malloc.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/malloc.in.h')
-rw-r--r--lib/malloc.in.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/malloc.in.h b/lib/malloc.in.h
index 2fcbe23535..3da05c2057 100644
--- a/lib/malloc.in.h
+++ b/lib/malloc.in.h
@@ -46,6 +46,11 @@
#ifndef _@GUARD_PREFIX@_MALLOC_H
#define _@GUARD_PREFIX@_MALLOC_H
+/* This file uses _GL_ATTRIBUTE_DEALLOC, GNULIB_POSIXCHECK. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
/* Solaris declares memalign() in <stdlib.h>, not in <malloc.h>. */
#if defined __sun || defined __hpux
# include <stdlib.h>