Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Do not compile in whole fileio.c for LIBHACK.



details:   https://anonhg.NetBSD.org/src/rev/f7cc6e344e0c
branches:  trunk
changeset: 985785:f7cc6e344e0c
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Sep 07 12:36:57 2021 +0000

description:
Do not compile in whole fileio.c for LIBHACK.

Fix build failure when built as libhack, due to missing fileio.h.

IMO, this should be cleaner than generating fileio.h for {get,put}win(3),
that are useless for install media.

diffstat:

 lib/libcurses/fileio.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a7426e3ee1d1 -r f7cc6e344e0c lib/libcurses/fileio.c
--- a/lib/libcurses/fileio.c    Tue Sep 07 11:43:02 2021 +0000
+++ b/lib/libcurses/fileio.c    Tue Sep 07 12:36:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fileio.c,v 1.8 2021/09/06 07:03:49 rin Exp $   */
+/*     $NetBSD: fileio.c,v 1.9 2021/09/07 12:36:57 rin Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,9 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifndef LIBHACK
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fileio.c,v 1.8 2021/09/06 07:03:49 rin Exp $");
+__RCSID("$NetBSD: fileio.c,v 1.9 2021/09/07 12:36:57 rin Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -241,3 +242,4 @@
                free(wtmp);
        return NULL;
 }
+#endif /* !LIBHACK */



Home | Main Index | Thread Index | Old Index