bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnulib] progname.c fix


From: Bruno Haible
Subject: [bug-gnulib] progname.c fix
Date: Sat, 29 Jan 2005 16:17:13 +0100
User-agent: KMail/1.5

Hi,

I committed this patch to progname.c. It avoids an "undefined symbol" link
error of GNU gettext on MacOS X. Similar to the one in argp-pvh.c that Paul
fixed on 2004-09-13.


2005-01-29  Bruno Haible  <address@hidden>

        * progname.c (program_name): Initialize.
        Needed when linking statically on MacOS X.

*** lib/progname.c      Fri Aug 22 15:48:49 2003
--- lib/progname.c      Sat Jan 29 14:38:47 2005
***************
*** 1,5 ****
  /* Program name management.
!    Copyright (C) 2001-2003 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  /* Program name management.
!    Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 31,37 ****
  
  /* String containing name the program is called with.
     To be initialized by main().  */
! const char *program_name;
  
  /* Set program_name, based on argv[0].  */
  void
--- 31,37 ----
  
  /* String containing name the program is called with.
     To be initialized by main().  */
! const char *program_name = NULL;
  
  /* Set program_name, based on argv[0].  */
  void





reply via email to

[Prev in Thread] Current Thread [Next in Thread]