$NetBSD: patch-ae,v 1.2 1998/08/07 11:09:35 agc Exp $ --- filters/rs2icon.c 1998/02/25 13:51:18 1.1 +++ filters/rs2icon.c 1998/02/25 13:51:55 @@ -21,7 +21,7 @@ */ #include -#ifdef SYSV32 || hpux +#if defined(SYSV32) || defined(hpux) #include #else #include --- filters/ikon2icon.c 1998/02/25 13:51:11 1.1 +++ filters/ikon2icon.c 1998/02/25 13:57:09 @@ -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