This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: current CVS compile error
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: Re: current CVS compile error
- From: Andreas Jaeger <aj at suse dot de>
- Date: 23 Aug 2000 08:33:04 +0200
- References: <m2r97g5xw6.fsf@dejima.jp.tlan>
Here's a patch. Uli, ok to commit?
The problems were that on alpha you don't have MIN and if you don't
say --enable-kernel=..., __LINUX_KERNEL_VERSION is not defined at all.
Steve, does this fix your problems?
Andreas
2000-08-23 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/dl-osinfo.h: Include
"kernel-features.h", otherwise __LINUX_KERNEL_VERSION might not be
defined.
(MIN): Define if not already defined.
============================================================
Index: sysdeps/unix/sysv/linux/dl-osinfo.h
--- sysdeps/unix/sysv/linux/dl-osinfo.h 2000/08/22 17:58:43 1.2
+++ sysdeps/unix/sysv/linux/dl-osinfo.h 2000/08/23 06:31:36
@@ -18,6 +18,11 @@
Boston, MA 02111-1307, USA. */
#include <sys/sysctl.h>
+#include "kernel-features.h"
+
+#ifndef MIN
+# define MIN(a,b) (((a)<(b))?(a):(b))
+#endif
/* There is no prototype for __sysctl in that file. */
extern int __sysctl (int *name, int nlen, void *oldval,
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj