kbuild: prevent exported headers from including <stdlib.h>, <stdbool.h>
[sfrench/cifs-2.6.git] / usr / dummy-include / stdlib.h
diff --git a/usr/dummy-include/stdlib.h b/usr/dummy-include/stdlib.h
new file mode 100644 (file)
index 0000000..e8c2188
--- /dev/null
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef _STDLIB_H
+#define _STDLIB_H
+
+#error "Please do not include <stdlib.h> from exported headers"
+
+#endif /* _STDLIB_H */