From: mrtout Date: Sat, 18 Mar 2006 08:20:15 +0000 (+0000) Subject: define _XOPEN_SOURCE, fix #36 (again) X-Git-Tag: fremantle/1.5.5-2~2194 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=2fab64be22e224a278ec91654c1decef5ddd70e3;p=neverball define _XOPEN_SOURCE, fix #36 (again) git-svn-id: https://s.snth.net/svn/neverball/trunk@351 78b8d119-cf0a-0410-b17c-f493084dd1d7 --- diff --git a/share/i18n.c b/share/i18n.c index 2e3f23c..b4833af 100644 --- a/share/i18n.c +++ b/share/i18n.c @@ -13,14 +13,16 @@ * General Public License for more details. */ +/* The following declaration is needed to have the putenv function + * http://www.gnu.org/software/libc/manual/html_node/Environment-Access.html + */ +#define _XOPEN_SOURCE 1 + #include #include #include #include "i18n.h" -/* predeclare the POSIX putenv function, I do not know why but is not declared */ -int putenv(char *string); - const char * gettextdbg(const char * c) { char * c2 = gettext(c);