Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ./otherlibs/unix/unixsupport.c.original 2011-10-23 17:57:40.000000000 +0200
- +++ ./otherlibs/unix/unixsupport.c 2011-10-23 18:09:09.000000000 +0200
- @@ -165,7 +165,11 @@
- #define ESOCKTNOSUPPORT (-1)
- #endif
- #ifndef EOPNOTSUPP
- -#define EOPNOTSUPP (-1)
- +# ifdef ENOTSUP
- +# define EOPNOTSUPP ENOTSUP
- +# else
- +# define EOPNOTSUPP (-1)
- +# endif
- #endif
- #ifndef EPFNOSUPPORT
- #define EPFNOSUPPORT (-1)
- @@ -252,6 +256,11 @@
- int errconstr;
- value err;
- +#if defined(ENOTSUP) && (EOPNOTSUPP != ENOTSUP)
- + if (errcode == ENOTSUP)
- + errcode = EOPNOTSUPP;
- +#endif
- +
- errconstr =
- cst_to_constr(errcode, error_table, sizeof(error_table)/sizeof(int), -1);
- if (errconstr == Val_int(-1)) {
Add Comment
Please, Sign In to add comment