openbsd-ports/net/ocserv/patches/patch-src_occtl_occtl_c

14 lines
459 B
Plaintext

$OpenBSD: patch-src_occtl_occtl_c,v 1.4 2018/01/12 22:28:51 sthen Exp $
Index: src/occtl/occtl.c
--- src/occtl/occtl.c.orig
+++ src/occtl/occtl.c
@@ -249,7 +249,7 @@ static int handle_help_cmd(CONN_TYPE * conn, const cha
static int handle_reset_cmd(CONN_TYPE * conn, const char *arg, cmd_params_st *params)
{
rl_reset_terminal(NULL);
-#ifdef HAVE_ORIG_READLINE
+#if defined(HAVE_ORIG_READLINE) && !defined(__OpenBSD__)
rl_reset_screen_size();
#endif