Commit 7b65852c 7b65852c1a062ca64b81985827a6a7d52e72988b by Sergey Poznyakoff

Include errno.h

Provide ECANCELED if it is missing (mainly for cygwin).
1 parent bcb26d47
...@@ -15,11 +15,13 @@ ...@@ -15,11 +15,13 @@
15 15
16 You should have received a copy of the GNU Lesser General Public 16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software 17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 MA 02110-1301 USA */
19 20
20 #ifndef _MAILUTILS_ERRNO_H 21 #ifndef _MAILUTILS_ERRNO_H
21 #define _MAILUTILS_ERRNO_H 1 22 #define _MAILUTILS_ERRNO_H 1
22 23
24 #include <errno.h>
23 #include <mailutils/types.h> 25 #include <mailutils/types.h>
24 26
25 #ifdef __cplusplus 27 #ifdef __cplusplus
...@@ -29,6 +31,10 @@ extern "C" { ...@@ -29,6 +31,10 @@ extern "C" {
29 #define MU_ERR_BASE 0x1000 31 #define MU_ERR_BASE 0x1000
30 32
31 $MESSAGE_DEFS 33 $MESSAGE_DEFS
34
35 #ifndef ECANCELED
36 # define ECANCELED MU_ERR_CANCELED
37 #endif
32 38
33 const char *mu_errname (int e); 39 const char *mu_errname (int e);
34 const char *mu_strerror (int e); 40 const char *mu_strerror (int e);
......