Index: src/pspg.c --- src/pspg.c.orig 2017-11-16 07:49:15.000000000 +0100 +++ src/pspg.c 2017-11-16 09:46:10.382955000 +0100 @@ -10,6 +10,9 @@ * *------------------------------------------------------------------------- */ +#ifdef __FreeBSD__ +#define _WITH_GETLINE +#endif #include #include #include