This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] _LINUX_TYPES_H redefinition warnings.


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>
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]