summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_freeall.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-11-17 03:16:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-11-17 03:16:23 +0000
commite7a575938f7ba2cf261a64fe16ac9fd677a071af (patch)
tree6d65b3548a484a495778960dcc1099484b8bff3b /lib/libcurses/lib_freeall.c
parenta30badf55fb6881746d73b6a9753007de1b15a18 (diff)
update to ncurses-4.2-981114
Diffstat (limited to 'lib/libcurses/lib_freeall.c')
-rw-r--r--lib/libcurses/lib_freeall.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libcurses/lib_freeall.c b/lib/libcurses/lib_freeall.c
index 6e45833e2dc..15ab0c0517d 100644
--- a/lib/libcurses/lib_freeall.c
+++ b/lib/libcurses/lib_freeall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_freeall.c,v 1.1 1998/07/23 21:18:47 millert Exp $ */
+/* $OpenBSD: lib_freeall.c,v 1.2 1998/11/17 03:16:21 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -32,16 +32,16 @@
* Author: Thomas E. Dickey <dickey@clark.net> 1996,1997 *
****************************************************************************/
-#define HAVE_NC_FREEALL 1
-
#include <curses.priv.h>
#include <term.h>
+#if HAVE_NC_FREEALL
+
#if HAVE_LIBDBMALLOC
extern int malloc_errfd; /* FIXME */
#endif
-MODULE_ID("$From: lib_freeall.c,v 1.11 1998/02/11 12:13:57 tom Exp $")
+MODULE_ID("$From: lib_freeall.c,v 1.12 1998/11/08 01:33:09 tom Exp $")
static void free_slk(SLK *p)
{
@@ -139,3 +139,6 @@ void _nc_free_and_exit(int code)
_nc_freeall();
exit(code);
}
+#else
+void _nc_freeall(void) { }
+#endif