URI: 
       tbetter errno declarations - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit fa059a4e3f19706674ed7314d5c4a764a1bc8222
   DIR parent cd37aecf6edf53e2bd6c27f57b7d40cf57096b04
  HTML Author: rsc <devnull@localhost>
       Date:   Sat, 17 Dec 2005 13:00:00 +0000
       
       better errno declarations
       
       Diffstat:
         M src/cmd/tcs/utf.c                   |      15 ++++++---------
       
       1 file changed, 6 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/src/cmd/tcs/utf.c b/src/cmd/tcs/utf.c
       t@@ -2,6 +2,12 @@
        #include        <u.h>
        #include        <libc.h>
        #include        <bio.h>
       +#ifdef PLAN9PORT
       +#include        <errno.h>
       +#else
       +extern int errno;
       +#define EILSEQ 123
       +#endif
        #else
        #include        <sys/types.h>
        #include        <stdio.h>
       t@@ -291,10 +297,6 @@ fullisorune(char *str, int n)
                return 0;
        }
        
       -#ifdef PLAN9
       -int        errno;
       -#endif
       -
        enum
        {
                T1        = 0x00,
       t@@ -326,11 +328,6 @@ enum
                Wchar3        = (1UL<<(Bit3+2*Bitx))-1,
                Wchar4        = (1UL<<(Bit4+3*Bitx))-1,
                Wchar5        = (1UL<<(Bit5+4*Bitx))-1
       -
       -#ifndef        EILSEQ
       -        , /* we hate ansi c's comma rules */
       -        EILSEQ        = 123
       -#endif /* PLAN9 */
        };
        
        int