[Mono-dev] [PATCH v2 07/10] console-unix: Compile fix for Haiku

Paolo Molaro lupus at ximian.com
Tue Mar 30 09:54:38 EDT 2010


On 03/30/10 Andreas Färber wrote:
> --- a/mono/metadata/console-unix.c
> +++ b/mono/metadata/console-unix.c
> @@ -43,7 +43,8 @@
>  #ifdef HAVE_SYS_FILIO_H
>  #    include <sys/filio.h>
>  #endif
> -#ifndef TIOCGWINSZ
> +/* Haiku has FIONREAD in sys/ioctl.h */
> +#if !defined(TIOCGWINSZ) || !defined(FIONREAD)
>  #    ifdef HAVE_SYS_IOCTL_H
>  #        include <sys/ioctl.h>
>  #    endif

I committed a better fix in svn.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-devel-list mailing list