From: Bruno Haible Date: Sat, 29 Jan 2005 15:11:35 +0000 (+0000) Subject: Fix a link error on MacOS X. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e57dfac3355164cfbfcb5473a42130dab793fe9f;p=pspp Fix a link error on MacOS X. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 547756e419..ff10ee17d9 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-01-29 Bruno Haible + + * progname.c (program_name): Initialize. + Needed when linking statically on MacOS X. + 2005-01-28 Bruno Haible * javacomp.sh.in: New file, from GNU gettext. diff --git a/lib/progname.c b/lib/progname.c index 8453706c93..9917efa9ce 100644 --- a/lib/progname.c +++ b/lib/progname.c @@ -1,5 +1,5 @@ /* Program name management. - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -31,7 +31,7 @@ /* String containing name the program is called with. To be initialized by main(). */ -const char *program_name; +const char *program_name = NULL; /* Set program_name, based on argv[0]. */ void