Source-Changes-HG archive

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

[src/trunk]: src/tools/compat FreeBSD #defines putc_unlocked in stdio.h, so g...



details:   https://anonhg.NetBSD.org/src/rev/b9c2d4d09dc5
branches:  trunk
changeset: 544467:b9c2d4d09dc5
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Mar 21 14:40:26 2003 +0000

description:
FreeBSD #defines putc_unlocked in stdio.h, so guard against that also

diffstat:

 tools/compat/putc_unlocked.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 65562e574c2b -r b9c2d4d09dc5 tools/compat/putc_unlocked.c
--- a/tools/compat/putc_unlocked.c      Fri Mar 21 13:48:53 2003 +0000
+++ b/tools/compat/putc_unlocked.c      Fri Mar 21 14:40:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: putc_unlocked.c,v 1.1 2003/03/14 03:38:42 thorpej Exp $        */
+/*     $NetBSD: putc_unlocked.c,v 1.2 2003/03/21 14:40:26 pooka Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -43,10 +43,12 @@
 #if !HAVE_PUTC_UNLOCKED
 #include <stdio.h>
 
+#ifndef putc_unlocked
 int
 putc_unlocked(int c, FILE *stream)
 {
 
        putc(c, stream);
 }
+#endif /* putc_unlocked */
 #endif



Home | Main Index | Thread Index | Old Index