=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/stdio.h,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/include/stdio.h 1996/07/26 10:34:25 1.6 --- src/include/stdio.h 1996/10/28 06:51:05 1.7 *************** *** 1,4 **** ! /* $OpenBSD: stdio.h,v 1.6 1996/07/26 10:34:25 deraadt Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: stdio.h,v 1.7 1996/10/28 06:51:05 tholo Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- *************** *** 371,377 **** --- 371,383 ---- #ifndef lint #define getc(fp) __sgetc(fp) + /* + * The macro implementation of putc is not fully POSIX + * compliant; it does not set errno on failure + */ + #ifndef _POSIX_SOURCE #define putc(x, fp) __sputc(x, fp) + #endif /* _POSIX_SOURCE */ #endif /* lint */ #define getchar() getc(stdin)