Mercurial > hg > xemacs-beta
annotate src/s/mingw32.h @ 5887:6eca500211f4
Prototype for X509_check_host() has changed, detect this in configure.ac
ChangeLog addition:
2015-04-09 Aidan Kehoe <kehoea@parhasard.net>
* configure.ac:
If X509_check_host() is available, check the number of arguments
it takes. Don't use it if it takes any number of arguments other
than five. Also don't use it if <openssl/x509v3.h> does not
declare it, since if that is so there is no portable way to tell
how many arguments it should take, and so we would end up smashing
the stack.
* configure: Regenerate.
src/ChangeLog addition:
2015-04-09 Aidan Kehoe <kehoea@parhasard.net>
* tls.c:
#include <openssl/x509v3.h> for its prototype for
X509_check_host().
* tls.c (tls_open):
Pass the new fifth argument to X509_check_host().
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 09 Apr 2015 14:27:02 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
428 | 1 /* system description file for mingw32. |
2 Copyright (C) 1993, 1994, 1995, 1999 Free Software Foundation, Inc. | |
1111 | 3 Copyright (C) 2001, 2002 Ben Wing. |
428 | 4 |
613 | 5 This file is part of XEmacs. |
428 | 6 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
7 XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
9 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
10 option) any later version. |
428 | 11 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
15 for more details. |
428 | 16 |
17 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4858
diff
changeset
|
18 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
428 | 19 |
20 /* based on cygwin32.h by Andy Piper <andy@xemacs.org> */ | |
21 | |
2367 | 22 /* See win32.c for info about the different Windows files in XEmacs. */ |
1111 | 23 |
771 | 24 #include "win32-native.h" |
428 | 25 |
442 | 26 #define MINGW |
428 | 27 |
4858
e1d8b6b0c589
Define CYGWIN_HEADERS in s/cygwin32.h and s/mingw32.h instead of syswindows.h, so they're available everywhere
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
28 /* We are using Cygwin-style headers in /usr/include, also used by |
e1d8b6b0c589
Define CYGWIN_HEADERS in s/cygwin32.h and s/mingw32.h instead of syswindows.h, so they're available everywhere
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
29 Cygwin itself */ |
e1d8b6b0c589
Define CYGWIN_HEADERS in s/cygwin32.h and s/mingw32.h instead of syswindows.h, so they're available everywhere
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
30 #define CYGWIN_HEADERS |
e1d8b6b0c589
Define CYGWIN_HEADERS in s/cygwin32.h and s/mingw32.h instead of syswindows.h, so they're available everywhere
Ben Wing <ben@xemacs.org>
parents:
2367
diff
changeset
|
31 |
428 | 32 #ifndef ORDINARY_LINK |
33 #define ORDINARY_LINK | |
34 #endif | |
35 | |
771 | 36 #define C_SWITCH_SYSTEM "-mno-cygwin -fno-caller-saves -DWIN32_NATIVE -DMINGW" |
442 | 37 #define LIBS_SYSTEM "-mno-cygwin -mwindows -lwinmm -lwsock32" |
38 #define WIN32_LEAN_AND_MEAN | |
428 | 39 |
40 #define TEXT_START -1 | |
41 #define HEAP_IN_DATA | |
42 #define UNEXEC "unexcw.o" | |
43 | |
44 #define TIME_ONESHOT 0 | |
45 #define TIME_PERIODIC 1 | |
46 #define LOCALE_USE_CP_ACP 0x40000000 | |
47 #define NSIG 23 | |
48 | |
442 | 49 /* this is necessary to get the TCS_* definitions in <commctrl.h> */ |
50 #define _WIN32_IE 0x0400 | |
428 | 51 |
52 /* translate NT world unexec stuff to our a.out definitions */ | |
53 | |
54 #define strnicmp strncasecmp | |
55 /* #ifndef HAVE_SOCKETS */ | |
56 #define HAVE_SOCKETS | |
57 /* #endif */ | |
771 | 58 #define OBJECTS_SYSTEM nt.o ntheap.o ntproc.o dired-msw.o |
428 | 59 |
60 #undef MAIL_USE_SYSTEM_LOCK | |
61 #define HAVE_MSW_C_DIRED | |
62 | |
442 | 63 /* Do not define LOAD_AVE_TYPE or LOAD_AVE_CVT |
64 since there is no load average available. */ | |
428 | 65 |
66 /* define MAIL_USE_FLOCK if the mailer uses flock | |
67 to interlock access to /usr/spool/mail/$USER. | |
68 The alternative is that a lock file named | |
69 /usr/spool/mail/$USER.lock. */ | |
70 | |
71 #ifndef NOT_C_CODE | |
72 #include <stdlib.h> | |
546 | 73 #include <../mingw/process.h> |
428 | 74 #define mkdir __mkdir |
75 #include <dir.h> | |
76 #undef mkdir | |
771 | 77 #ifdef HAVE_CYGWIN_VERSION_H |
78 #include <cygwin/version.h> | |
428 | 79 #endif |
771 | 80 #endif /* NOT_C_CODE */ |
613 | 81 |
82 #define DONT_USE_LITOUT | |
83 | |
428 | 84 /* Stuff that gets set wrongly or otherwise */ |
85 #define HAVE_GETTIMEOFDAY | |
86 #define HAVE_SELECT | |
442 | 87 /* systime.h includes winsock.h which defines timeval */ |
88 #define HAVE_TIMEVAL | |
89 #define HAVE_GETPAGESIZE | |
90 #define getpagesize() 4096 | |
91 #ifndef HAVE_H_ERRNO | |
92 #define HAVE_H_ERRNO | |
93 #endif | |
94 #ifndef HAVE_TZNAME | |
95 #define HAVE_TZNAME | |
96 #endif | |
428 | 97 |
98 #undef GETTIMEOFDAY_ONE_ARGUMENT | |
99 #undef HAVE_SYS_WAIT_H | |
100 #undef HAVE_TERMIOS | |
101 #undef SYSV_SYSTEM_DIR | |
442 | 102 #undef CLASH_DETECTION |