Module Name: src
Committed By: rin
Date: Tue Sep 7 12:36:57 UTC 2021
Modified Files:
src/lib/libcurses: fileio.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libcurses/fileio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/fileio.c
diff -u src/lib/libcurses/fileio.c:1.8 src/lib/libcurses/fileio.c:1.9
--- src/lib/libcurses/fileio.c:1.8 Mon Sep 6 07:03:49 2021
+++ src/lib/libcurses/fileio.c Tue Sep 7 12:36:57 2021
@@ -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 @@ error0:
free(wtmp);
return NULL;
}
+#endif /* !LIBHACK */