From: Bruno Haible Date: Mon, 26 Jan 2009 02:03:21 +0000 (+0100) Subject: Avoid link errors on MacOS X 10.3 / PowerPC. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d557bc3528230c6567d3a90633dc23b2de170a8;p=pspp Avoid link errors on MacOS X 10.3 / PowerPC. --- diff --git a/ChangeLog b/ChangeLog index f74e898828..42078cc17a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-25 Bruno Haible + + Avoid link errors on MacOS X 10.3. + * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer. + * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise. + 2009-01-25 Bruno Haible * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp. diff --git a/lib/mbsrtowcs-state.c b/lib/mbsrtowcs-state.c index 8216c790d7..3b4db21e00 100644 --- a/lib/mbsrtowcs-state.c +++ b/lib/mbsrtowcs-state.c @@ -1,5 +1,5 @@ /* Convert string to wide string. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -20,4 +20,4 @@ #include /* Internal state used by the functions mbsrtowcs() and mbsnrtowcs(). */ -mbstate_t _gl_mbsrtowcs_state; +mbstate_t _gl_mbsrtowcs_state = 0; diff --git a/lib/wcsrtombs-state.c b/lib/wcsrtombs-state.c index c06ad94810..cbdd250e10 100644 --- a/lib/wcsrtombs-state.c +++ b/lib/wcsrtombs-state.c @@ -1,5 +1,5 @@ /* Convert wide string to string. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -20,4 +20,4 @@ #include /* Internal state used by the functions wcsrtombs() and wcsnrtombs(). */ -mbstate_t _gl_wcsrtombs_state; +mbstate_t _gl_wcsrtombs_state = 0;