$OpenBSD: patch-gjs_debugger_cpp,v 1.3 2021/10/25 14:48:38 jasper Exp $

XXX:
Moving the HAVE_READLINE_READLINE_H block until after the Mozilla
includes suddenly toggles symbol visiblity on gjs_context_setup_debugger_console()
which unhides it?

Index: gjs/debugger.cpp
--- gjs/debugger.cpp.orig
+++ gjs/debugger.cpp
@@ -7,10 +7,6 @@
 #include <stdint.h>
 #include <stdio.h>  // for feof, fflush, fgets, stdin, stdout
 
-#ifdef HAVE_READLINE_READLINE_H
-#    include <readline/history.h>
-#    include <readline/readline.h>
-#endif
 
 #include <glib.h>
 
@@ -29,6 +25,12 @@
 #include "gjs/jsapi-util-args.h"
 #include "gjs/jsapi-util.h"
 #include "gjs/macros.h"
+
+#ifdef HAVE_READLINE_READLINE_H
+#    include <wchar.h>
+#    include <readline/history.h>
+#    include <readline/readline.h>
+#endif
 
 #include "util/console.h"
 
