diff -up ./test/stdlib/testsort.c.tv ./test/stdlib/testsort.c --- ./test/stdlib/testsort.c.tv 2003-12-15 14:07:42.000000000 +0100 +++ ./test/stdlib/testsort.c 2018-01-09 22:07:44.394947924 +0100 @@ -1,3 +1,4 @@ +#define _BSD_SOURCE #include <stdlib.h> #include <string.h> #include <stdio.h> diff -up ./test/stdlib/tst-calloc.c.tv ./test/stdlib/tst-calloc.c --- ./test/stdlib/tst-calloc.c.tv 2003-12-15 14:07:42.000000000 +0100 +++ ./test/stdlib/tst-calloc.c 2018-01-09 22:08:20.981616423 +0100 @@ -17,6 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#define _BSD_SOURCE #include <errno.h> #include <limits.h> #include <malloc.h> diff -up ./test/stdlib/tst-strtod.c.tv ./test/stdlib/tst-strtod.c --- ./test/stdlib/tst-strtod.c.tv 2003-12-15 14:07:42.000000000 +0100 +++ ./test/stdlib/tst-strtod.c 2018-01-09 22:09:38.839039005 +0100 @@ -148,11 +148,11 @@ main (int argc, char ** argv) status = 1; } - const char input2[] = "+1.000000000116415321826934814453125"; - if (strtold (input2, NULL) != +1.000000000116415321826934814453125) + const char input2[] = "+1.000000000116415321826934814453125L"; + if (strtold (input2, NULL) != +1.000000000116415321826934814453125L) { printf ("input2: %La != %La\n", strtold (input2, NULL), - +1.000000000116415321826934814453125); + +1.000000000116415321826934814453125L); status = 1; } diff -up ./test/getservbyname.c.tv ./test/getservbyname.c --- ./test/getservbyname.c.tv 2003-12-15 14:07:42.000000000 +0100 +++ ./test/getservbyname.c 2018-01-09 22:20:11.283594798 +0100 @@ -1,5 +1,6 @@ #include <stdio.h> #include <netdb.h> +#include <arpa/inet.h> int main(int argc,char *argv[]) { struct servent* se;