diff options
author | Darren Tucker <dtucker@zip.com.au> | 2014-01-18 21:12:42 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2014-01-18 21:12:42 +1100 |
commit | fdce3731660699b2429e93e822f2ccbaccd163ae (patch) | |
tree | 2f80622e6f2fec28032b21b106e663a3040f33a6 /compat.h | |
parent | 1411c9263f46e1ee49d0d302bf7258ebe69ce827 (diff) |
- (dtucker) [configure.ac] On Cygwin the getopt variables (like optargs,
optind) are defined in getopt.h already. Unfortunately they are defined as
"declspec(dllimport)" for historical reasons, because the GNU linker didn't
allow auto-import on PE/COFF targets way back when. The problem is the
dllexport attributes collide with the definitions in the various source
files in OpenSSH, which obviousy define the variables without
declspec(dllimport). The least intrusive way to get rid of these warnings
is to disable warnings for GCC compiler attributes when building on Cygwin.
Patch from vinschen at redhat.com.
Diffstat (limited to 'compat.h')
0 files changed, 0 insertions, 0 deletions