$NetBSD: patch-ak,v 1.3 2000/07/08 12:47:07 tron Exp $ --- filters/ikon2icon.c.orig Mon Apr 15 05:40:02 1991 +++ filters/ikon2icon.c Sat Jul 8 14:25:27 2000 @@ -13,12 +13,17 @@ * either to the comments or the code of this program, but if reported * to me, then an attempt will be made to fix them. */ +#include #include #define PATCHLEVEL 1 -#define GETS (void) gets /* To make lint happy. */ +#if (defined(BSD) && BSD >= 199306) +#define GETS(s) { (void)fgets(s, sizeof(s), stdin); s[sizeof(s) - 1] = 0; } +#else +#define GETS(s) (void) gets(s) /* To make lint happy. */ +#endif #define PRINTF (void) printf #define SPRINTF (void) sprintf #define SSCANF (void) sscanf