mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-19 00:24:35 +00:00
- (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.
This commit is contained in:
parent
1411c9263f
commit
fdce373166
@ -5,6 +5,15 @@
|
|||||||
declarations that stopped being included when we stopped including
|
declarations that stopped being included when we stopped including
|
||||||
<windows.h> from openbsd-compat/bsd-cygwin_util.h. Patch from vinschen at
|
<windows.h> from openbsd-compat/bsd-cygwin_util.h. Patch from vinschen at
|
||||||
redhat.com.
|
redhat.com.
|
||||||
|
- (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.
|
||||||
|
|
||||||
20140117
|
20140117
|
||||||
- (dtucker) [aclocal.m4 configure.ac] Add some additional compiler/toolchain
|
- (dtucker) [aclocal.m4 configure.ac] Add some additional compiler/toolchain
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Id: configure.ac,v 1.554 2014/01/17 10:54:32 dtucker Exp $
|
# $Id: configure.ac,v 1.555 2014/01/18 10:12:43 dtucker Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999-2004 Damien Miller
|
# Copyright (c) 1999-2004 Damien Miller
|
||||||
#
|
#
|
||||||
@ -15,7 +15,7 @@
|
|||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
|
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
|
||||||
AC_REVISION($Revision: 1.554 $)
|
AC_REVISION($Revision: 1.555 $)
|
||||||
AC_CONFIG_SRCDIR([ssh.c])
|
AC_CONFIG_SRCDIR([ssh.c])
|
||||||
AC_LANG([C])
|
AC_LANG([C])
|
||||||
|
|
||||||
@ -544,7 +544,10 @@ case "$host" in
|
|||||||
[Define if your platform needs to skip post auth
|
[Define if your platform needs to skip post auth
|
||||||
file descriptor passing])
|
file descriptor passing])
|
||||||
AC_DEFINE([SSH_IOBUFSZ], [65535], [Windows is sensitive to read buffer size])
|
AC_DEFINE([SSH_IOBUFSZ], [65535], [Windows is sensitive to read buffer size])
|
||||||
AC_DEFINE([FILESYSTEM_NO_BACKSLASH], [1], [File names may not contain backslash characters])
|
AC_DEFINE([FILESYSTEM_NO_BACKSLASH], [1], [File names may not contain backslash characters])
|
||||||
|
# Cygwin defines optargs, optargs as declspec(dllimport) for historical
|
||||||
|
# reasons which cause compile warnings, so we disable those warnings.
|
||||||
|
OSSH_CHECK_CFLAG_COMPILE([-Wno-attributes])
|
||||||
;;
|
;;
|
||||||
*-*-dgux*)
|
*-*-dgux*)
|
||||||
AC_DEFINE([IP_TOS_IS_BROKEN], [1],
|
AC_DEFINE([IP_TOS_IS_BROKEN], [1],
|
||||||
|
Loading…
Reference in New Issue
Block a user