Description: Make program compile on Debian. Author: Mark Nieweglowski --- bsdmainutils.orig/usr.bin/look/look.c 2011-05-27 19:46:25.000000000 -0400 +++ bsdmainutils/usr.bin/look/look.c 2011-05-27 19:42:13.000000000 -0400 @@ -46,7 +46,6 @@ #endif #endif /* not lint */ #include -__FBSDID("$FreeBSD$"); /* * look -- find lines in a sorted list. @@ -71,9 +70,14 @@ #include #include #include +#include #include "pathnames.h" +#ifndef SIZE_T_MAX +# define SIZE_T_MAX SIZE_MAX +#endif + static char _path_words[] = _PATH_WORDS; #define EQUAL 0 @@ -172,7 +176,7 @@ writep = key; while ((clen = mbrtowc(&ch, readp, MB_LEN_MAX, NULL)) != 0) { if (clen == (size_t)-1 || clen == (size_t)-2) - errc(2, EILSEQ, NULL); + errx(2, "%s", strerror(EILSEQ)); if (fflag) ch = towlower(ch); if (!dflag || iswalnum(ch))