From: Yannick Bergeron Date: Wed, 6 Aug 2008 17:23:00 +0000 (-0400) Subject: Solve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=661f8e166118d257ab32a30392cd616db097bc4c;p=thirdparty%2Fsamba.git Solve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array initialization in client/smbspool.c (cherry picked from commit b45e7fabc64e699e4fa013ef15f98a004dae3f32) --- diff --git a/source/lib/replace/libreplace_cc.m4 b/source/lib/replace/libreplace_cc.m4 index bed05582d8d..30c63f2f058 100644 --- a/source/lib/replace/libreplace_cc.m4 +++ b/source/lib/replace/libreplace_cc.m4 @@ -167,7 +167,8 @@ AC_CACHE_CHECK([for immediate structures],libreplace_cv_immediate_structures,[ FOOBAR y; } f2[] = { {FOO_ONE} - }; + }; + static const FOOBAR f3[] = {FOO_ONE}; ], libreplace_cv_immediate_structures=yes, libreplace_cv_immediate_structures=no,