$NetBSD: patch-ad,v 1.5 2025/10/20 18:32:10 vins Exp $

Prevent clash on u_* type definitions.

--- src/grkelot.c.orig	2001-07-27 06:38:37.000000000 +0000
+++ src/grkelot.c
@@ -76,15 +76,15 @@
 #include <stdlib.h>
 #include <string.h>
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 /* --- Macros, Types --------- */
 #define MAX_STATES	4	/* max # states for the FSM */
 #define MAX_SWITCHER	2U	/* per state */
 #define MAX_VAL 	256	/* for temp allocation */
 
-typedef unsigned char u_char;
-typedef unsigned int u_int;
-typedef unsigned long u_long;
-
 typedef struct s_xlat {
     u_int           first, last;
     u_int          *pval;	/* array of translated values */
@@ -159,9 +159,9 @@ static XLAT_TYPE *xlat_now = &xlat_type[
 
 #define NUM_XLAT_TYPES	(sizeof(xlat_type) / sizeof(xlat_type[0]))
 
-static void     kstate_add_xlat(char *str);
-static void     kstate_add_switcher(char *str);
-static void     kstate_set_life(char *str);
+void     kstate_add_xlat(char *str);
+void     kstate_add_switcher(char *str);
+void     kstate_set_life(char *str);
 
 /* --- Functions ------------- */
 /* INTPROTO */
