current CVS compile error

Andreas Jaeger aj@suse.de
Tue Aug 22 23:33:00 GMT 2000


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


More information about the Libc-alpha mailing list