]> Savannah Git Hosting - gnulib.git/commitdiff
environ: fix link error on 32-bit Cygwin
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Feb 2018 17:04:42 +0000 (09:04 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Feb 2018 17:05:16 +0000 (09:05 -0800)
Problem reported for GNU Emacs by Ken Brown in:
https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
* lib/unistd.in.h (environ) [__i386__]: Do not redeclare.

ChangeLog
lib/unistd.in.h

index 2f2f06ead753cdad3c6da4a5910efef187fbfef3..667f9166307b81450fcf6af07704c6706e39876d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       environ: fix link error on 32-bit Cygwin
+       Problem reported for GNU Emacs by Ken Brown in:
+       https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
+       * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
+
 2018-02-24  Bruno Haible  <bruno@clisp.org>
 
        mbrtowc tests: Fix regression on glibc.
index 4ef0ffabb82031cb1cdd3f509eb5d3193c33cf2a..4f2e86e5ba882c361ec107f9da927c26f3a1980b 100644 (file)
@@ -400,7 +400,7 @@ _GL_WARN_ON_USE (dup3, "dup3 is unportable - "
 
 
 #if @GNULIB_ENVIRON@
-# if defined __CYGWIN__
+# if defined __CYGWIN__ && !defined __i386__
 /* The 'environ' variable is defined in a DLL. Therefore its declaration needs
    the '__declspec(dllimport)' attribute, but the system's <unistd.h> lacks it.
    This leads to a link error on 64-bit Cygwin when the option