[PATCH] _LINUX_TYPES_H redefinition warnings.
Carlos O'Donell
carlos@baldric.uwo.ca
Thu May 22 14:42:00 GMT 2003
libc-alpha,
Should _LINUX_TYPES_H be defined to 1, or rather just defined.
It seems that legacy has been to just define the name without a value.
This patch will produce a build with less redefinition warnings under hppa.
2003-05-19 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/unix/sysv/linux/sys/sysctl.h:
(_LINUX_TYPES_H): Add conditional define.
--- libc/sysdeps/unix/sysv/linux/sys/sysctl.h 6 Nov 2002 05:54:16 -0000 1.5
+++ libc/sysdeps/unix/sysv/linux/sys/sysctl.h 19 May 2003 16:54:23 -0000
@@ -24,7 +24,9 @@
#include <stddef.h>
/* Prevent more kernel headers than necessary to be included. */
#define _LINUX_KERNEL_H 1
-#define _LINUX_TYPES_H 1
+#ifndef _LINUX_TYPES_H
+# define _LINUX_TYPES_H 1
+#endif
#define _LINUX_LIST_H 1
#include <linux/sysctl.h>
More information about the Libc-alpha
mailing list