Fri, 05 Apr 2013 00:08:34 +0200
Fix compilation on OBS mingw, don't crash on webkitgtk
| 4130 | 1 | /* |
| 15884 | 2 | * purple |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
3 | * |
| 15884 | 4 | * File: wpurpleerror.h |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
5 | * Date: October 14, 2002 |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
6 | * Description: Convert Winsock errors to Unix errors |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
7 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
8 | * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com> |
| 4130 | 9 | * |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
10 | * This program is free software; you can redistribute it and/or modify |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
11 | * it under the terms of the GNU General Public License as published by |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
12 | * the Free Software Foundation; either version 2 of the License, or |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
13 | * (at your option) any later version. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
14 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
15 | * This program is distributed in the hope that it will be useful, |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
18 | * GNU General Public License for more details. |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
19 | * |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
20 | * You should have received a copy of the GNU General Public License |
|
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
21 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15906
diff
changeset
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
5913
4d016c00bb36
[gaim-migrate @ 6345]
Herman Bloggs <herman@bluedigits.com>
parents:
4130
diff
changeset
|
23 | * |
| 4130 | 24 | */ |
| 15884 | 25 | #ifndef _WPURPLEERROR_H |
| 26 | #define _WPURPLEERROR_H | |
| 4130 | 27 | |
| 28 | /* Here we define unix socket errors as windows socket errors */ | |
| 29 | ||
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
30 | #undef ENETDOWN |
| 4130 | 31 | #define ENETDOWN WSAENETDOWN |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
32 | #undef EAFNOSUPPORT |
| 4130 | 33 | #define EAFNOSUPPORT WSAEAFNOSUPPORT |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
34 | #undef EINPROGRESS |
| 4130 | 35 | #define EINPROGRESS WSAEINPROGRESS |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
36 | #undef ENOBUFS |
| 4130 | 37 | #define ENOBUFS WSAENOBUFS |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
38 | #undef EPROTONOSUPPORT |
| 4130 | 39 | #define EPROTONOSUPPORT WSAEPROTONOSUPPORT |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
40 | #undef EPROTOTYPE |
| 4130 | 41 | #define EPROTOTYPE WSAEPROTOTYPE |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
42 | #undef ESOCKTNOSUPPORT |
| 4130 | 43 | #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT |
| 44 | ||
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
45 | #undef EADDRINUSE |
| 4130 | 46 | #define EADDRINUSE WSAEADDRINUSE |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
47 | #undef EALREADY |
| 4130 | 48 | #define EALREADY WSAEALREADY |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
49 | #undef EADDRNOTAVAIL |
| 4130 | 50 | #define EADDRNOTAVAIL WSAEADDRNOTAVAIL |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
51 | #undef ECONNREFUSED |
| 4130 | 52 | #define ECONNREFUSED WSAECONNREFUSED |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
53 | #undef EISCONN |
| 4130 | 54 | #define EISCONN WSAEISCONN |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
55 | #undef ENETUNREACH |
| 4130 | 56 | #define ENETUNREACH WSAENETUNREACH |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
57 | #undef ENOTSOCK |
| 4130 | 58 | #define ENOTSOCK WSAENOTSOCK |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
59 | #undef ETIMEDOUT |
| 4130 | 60 | #define ETIMEDOUT WSAETIMEDOUT |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
61 | #undef EWOULDBLOCK |
| 4130 | 62 | #define EWOULDBLOCK WSAEWOULDBLOCK |
| 63 | ||
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
64 | #undef ENOTCONN |
| 4130 | 65 | #define ENOTCONN WSAENOTCONN |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
66 | #undef ENETRESET |
| 4130 | 67 | #define ENETRESET WSAENETRESET |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
68 | #undef EOPNOTSUPP |
| 4130 | 69 | #define EOPNOTSUPP WSAEOPNOTSUPP |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
70 | #undef ESHUTDOWN |
| 4130 | 71 | #define ESHUTDOWN WSAESHUTDOWN |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
72 | #undef EMSGSIZE |
| 4130 | 73 | #define EMSGSIZE WSAEMSGSIZE |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
74 | #undef ECONNABORTED |
| 4130 | 75 | #define ECONNABORTED WSAECONNABORTED |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
76 | #undef ECONNRESET |
| 4130 | 77 | #define ECONNRESET WSAECONNRESET |
|
33857
af0723304ab3
Fix compilation on OBS mingw, don't crash on webkitgtk
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
19859
diff
changeset
|
78 | #undef EHOSTUNREACH |
|
13201
8c224ef70efa
[gaim-migrate @ 15563]
Daniel Atallah <datallah@pidgin.im>
parents:
5913
diff
changeset
|
79 | #define EHOSTUNREACH WSAEHOSTUNREACH |
| 4130 | 80 | |
| 15884 | 81 | #endif /* end _WPURPLEERROR_H */ |