diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-03-07 05:31:03 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-03-07 05:31:03 +0100 |
commit | f7c3580478601e3a77dc864e5a1d91c1edad5187 (patch) | |
tree | 26f2b85233e76ce30cbd013559944404e66a6552 /lib/unistd.in.h | |
parent | 44a3eaeba04ef78835ca741592c376428ada5f71 (diff) |
New upstream version 0.9.9upstream/0.9.9
Diffstat (limited to 'lib/unistd.in.h')
-rw-r--r-- | lib/unistd.in.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 25e41d6c..c25ff8ef 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -1,5 +1,5 @@ /* Substitute for and wrapper around <unistd.h>. - Copyright (C) 2003-2017 Free Software Foundation, Inc. + Copyright (C) 2003-2018 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of either: @@ -409,6 +409,13 @@ _GL_WARN_ON_USE (dup3, "dup3 is unportable - " #if @GNULIB_ENVIRON@ +# 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 + -Wl,--disable-auto-import is in use. */ +_GL_EXTERN_C __declspec(dllimport) char **environ; +# endif # if !@HAVE_DECL_ENVIRON@ /* Set of environment variables and values. An array of strings of the form "VARIABLE=VALUE", terminated with a NULL. */ |