$NetBSD: patch-at,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $ Avoid ugly warning. --- vsnprintf.c.orig 2010-04-28 01:27:37.000000000 +0000 +++ vsnprintf.c @@ -203,7 +203,9 @@ typedef struct __sFILE { #define __sfeof(p) (((p)->_flags & __SEOF) != 0) #define __sferror(p) (((p)->_flags & __SERR) != 0) #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) +#ifndef __sfileno #define __sfileno(p) ((p)->_file) +#endif #undef feof #undef ferror