When importing getline.c into GNU GRUB, it failed to build due to undefined ssize_t. Here's a fix (I believe including <sys/types.h> is portable enough, please let me know if I'm wrong).
-- Robert Millan "Be the change you want to see in the world" -- Gandhi
2010-01-01 Robert Millan <rmh.g...@aybabtu.com> * lib/getline.c: Include `<sys/types.h>'. === modified file 'lib/getline.c' --- lib/getline.c 2007-08-22 12:54:21 +0000 +++ lib/getline.c 2010-01-01 12:31:58 +0000 @@ -21,6 +21,7 @@ #include <config.h> #include <stdio.h> +#include <sys/types.h> ssize_t getline (char **lineptr, size_t *n, FILE *stream)