Re: non-linux support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 04 November 2007, Samuel Thibault wrote:
> @@ -118,6 +120,7 @@ add_to_class(struct ttyclass *tc, char *tty)
>  static int
>  isapty(const char *tty)
>  {
> +#ifdef __linux__
>      char devname[100];
>      struct stat stb;
>  
> @@ -148,6 +151,7 @@ isapty(const char *tty)
>  
>      }
>      return 0;
> +#endif
>  }

what about the !__linux__ case ?  you're going to return random garbage.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux