This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] _LINUX_TYPES_H redefinition warnings.
- From: Carlos O'Donell <carlos at baldric dot uwo dot ca>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 22 May 2003 10:44:01 -0400
- Subject: [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>