Patch for undefined behaviour in gcc
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Thu Oct 26 03:04:00 GMT 2000
Andreas Jaeger <aj@suse.de> said:
[...]
> ============================================================
> Index: sysdeps/generic/_G_config.h
> --- sysdeps/generic/_G_config.h 1999/08/15 15:19:28 1.10
> +++ sysdeps/generic/_G_config.h 2000/10/26 09:46:11
> @@ -76,7 +76,10 @@
> #define _G_IO_IO_FILE_VERSION 0x20001
>
> /* This is defined by <bits/stat.h> if `st_blksize' exists. */
> -#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)
> +#ifdef _STATBUF_ST_BLKSIZE
> +# define _G_HAVE_ST_BLKSIZE 1
> +#endif
> +
Shouldn't there be a #define as 0 or an #undef be around for completeness?
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Vin~a del Mar, Chile +56 32 672616
More information about the Libc-alpha
mailing list