bug-gnulib
[Top][All Lists]
Advanced

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

[bug-gnulib] missing environ decl


From: Bruno Haible
Subject: [bug-gnulib] missing environ decl
Date: Mon, 17 Jan 2005 13:52:45 +0100
User-agent: KMail/1.5

Hi,

Merge from gettext: The environ decl was missing in two files.


2004-05-27  Bruno Haible  <address@hidden>

        * execute.c (environ): Declare if needed.
        * pipe.c (environ): Likewise.
        Reported by Michael Schloh von Bennewitz <address@hidden>.

diff -r -c3 --exclude=ChangeLog GNULIB/gnulib-20050105/lib/execute.c 
/packages/gettext/gettext-work/gettext-cvs/gettext-tools/lib/execute.c
*** GNULIB/gnulib-20050105/lib/execute.c        2004-01-05 11:48:31.000000000 
+0100
--- /packages/gettext/gettext-work/gettext-cvs/gettext-tools/lib/execute.c      
2004-05-27 16:36:56.000000000 +0200
***************
*** 1,5 ****
  /* Creation of autonomous subprocesses.
!    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 ----
  /* Creation of autonomous subprocesses.
!    Copyright (C) 2001-2004 Free Software Foundation, Inc.
     Written by Bruno Haible <address@hidden>, 2001.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 61,66 ****
--- 61,70 ----
  
  #endif
  
+ #ifndef HAVE_ENVIRON_DECL
+ extern char **environ;
+ #endif
+ 
  #ifndef STDIN_FILENO
  # define STDIN_FILENO 0
  #endif
diff -r -c3 --exclude=ChangeLog GNULIB/gnulib-20050105/lib/pipe.c 
/packages/gettext/gettext-work/gettext-cvs/gettext-tools/lib/pipe.c
*** GNULIB/gnulib-20050105/lib/pipe.c   2004-02-03 13:56:18.000000000 +0100
--- /packages/gettext/gettext-work/gettext-cvs/gettext-tools/lib/pipe.c 
2004-05-27 16:36:56.000000000 +0200
***************
*** 60,65 ****
--- 60,69 ----
  
  #endif
  
+ #ifndef HAVE_ENVIRON_DECL
+ extern char **environ;
+ #endif
+ 
  #ifndef STDIN_FILENO
  # define STDIN_FILENO 0
  #endif





reply via email to

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