gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I. -I.. -I./.. -I../gllib -I./../gllib -g -O2 -MT test-localename.o -MD -MP -MF .deps/test-localename.Tpo -c -o test-localename.o test-localename.c test-localename.c:28:20: error: setenv.h: No such file or directory make[4]: *** [test-localename.o] Error 1
I'm not sure whether the test-localename module actually needs to depend on both setenv and unsetenv? Still, the patch below solves the problem. /Simon diff --git a/ChangeLog b/ChangeLog index bdc357a..194821f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-06 Simon Josefsson <[EMAIL PROTECTED]> + + * tests/test-localename.c: Don't include obsolete "setenv.h". + + * modules/localename-tests (Depends-on): Need unsetenv. + 2008-01-05 Eric Blake <[EMAIL PROTECTED]> Avoid quadratic system memmem. diff --git a/modules/localename-tests b/modules/localename-tests index 72e9582..79ce11e 100644 --- a/modules/localename-tests +++ b/modules/localename-tests @@ -3,6 +3,7 @@ tests/test-localename.c Depends-on: setenv +unsetenv configure.ac: diff --git a/tests/test-localename.c b/tests/test-localename.c index a417ace..0bd0c72 100644 --- a/tests/test-localename.c +++ b/tests/test-localename.c @@ -1,5 +1,5 @@ /* Test of gl_locale_name function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,8 +25,6 @@ #include <stdlib.h> #include <string.h> -#include "setenv.h" - #define ASSERT(expr) \ do \ { \