Fix build with clang11

Reported by:	pkg-fallout
Approved by:	antoine (implicit)
This commit is contained in:
Stefan Eßer 2020-09-01 08:12:09 +00:00
parent 45d270c95f
commit 143cf44704
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547243

View file

@ -0,0 +1,11 @@
--- src/main.c.orig 2014-11-14 14:48:11 UTC
+++ src/main.c
@@ -52,7 +52,7 @@ char *filter_command = NULL; /* -z opt
/* variables for global bookkeeping */
int master_pty_fd; /* master pty (rlwrap uses this to communicate with client) */
-int slave_pty_sensing_fd; /* slave pty (client uses this to communicate with rlwrap,
+extern int slave_pty_sensing_fd; /* slave pty (client uses this to communicate with rlwrap,
* we keep it open after forking in order to keep track of
* client's terminal settings */
FILE *debug_fp = NULL; /* filehandle of debugging log */