X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargp-pv.c;h=7a8cba7f533093d83e645287a21765dcd467d748;hb=d3042e83ace41dcd72fdf8d5173ddf55ac645459;hp=411f6ede70025c456c36d4ff1ac5b5e96b730d99;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/argp-pv.c b/lib/argp-pv.c index 411f6ede7..7a8cba7f5 100644 --- a/lib/argp-pv.c +++ b/lib/argp-pv.c @@ -1,5 +1,6 @@ /* Default definition for ARGP_PROGRAM_VERSION. - Copyright (C) 1996, 1997, 1999, 2006 Free Software Foundation, Inc. + Copyright (C) 1996-1997, 1999, 2006, 2009-2011 Free Software Foundation, + Inc. This file is part of the GNU C Library. Written by Miles Bader . @@ -20,4 +21,14 @@ --version is added (unless the ARGP_NO_HELP flag is used), which will print this string followed by a newline and exit (unless the ARGP_NO_EXIT flag is used). Overridden by ARGP_PROGRAM_VERSION_HOOK. */ -const char *argp_program_version; +const char *argp_program_version +/* This variable should be zero-initialized. On most systems, putting it into + BSS is sufficient. Not so on MacOS X 10.3 and 10.4, see + + . */ +#if defined __ELF__ + /* On ELF systems, variables in BSS behave well. */ +#else + = (const char *) 0 +#endif + ;