Description: Avoid conflicting prototypes for gl_in_hook and friends.
 This ensure consistent prototypes are used with __STDC__ > 0,
 and bring the definitions in line with getline.h prototypes.
Author: Petter Reinholdtsen
Bug-Debian: https://bugs.debian.org/688452
Forwarded: no
Last-Update: 2024-07-20
---
--- gpstrans-0.41.orig/src/getline/getline.c
+++ gpstrans-0.41/src/getline/getline.c
@@ -42,9 +42,15 @@ void gl_setwidth ();		/* specify width o
 void gl_histadd ();		/* adds entries to hist */
 void gl_strwidth ();		/* to bind gl_strlen */
 
+#if __STDC__ > 0
+int (*gl_in_hook) (char *) = 0;
+int (*gl_out_hook) (char *) = 0;
+int (*gl_tab_hook) (char *, int, int *) = gl_tab;
+#else /* not __STDC__ */
 int (*gl_in_hook) () = 0;
 int (*gl_out_hook) () = 0;
 int (*gl_tab_hook) () = gl_tab;
+#endif /* __STDC__ */
 
 int echo = (1 == 1);
 
