Guest User

Untitled

a guest
Feb 16th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. --- ./otherlibs/unix/unixsupport.c.original 2011-10-23 17:57:40.000000000 +0200
  2. +++ ./otherlibs/unix/unixsupport.c 2011-10-23 18:09:09.000000000 +0200
  3. @@ -165,7 +165,11 @@
  4. #define ESOCKTNOSUPPORT (-1)
  5. #endif
  6. #ifndef EOPNOTSUPP
  7. -#define EOPNOTSUPP (-1)
  8. +# ifdef ENOTSUP
  9. +# define EOPNOTSUPP ENOTSUP
  10. +# else
  11. +# define EOPNOTSUPP (-1)
  12. +# endif
  13. #endif
  14. #ifndef EPFNOSUPPORT
  15. #define EPFNOSUPPORT (-1)
  16. @@ -252,6 +256,11 @@
  17. int errconstr;
  18. value err;
  19.  
  20. +#if defined(ENOTSUP) && (EOPNOTSUPP != ENOTSUP)
  21. + if (errcode == ENOTSUP)
  22. + errcode = EOPNOTSUPP;
  23. +#endif
  24. +
  25. errconstr =
  26. cst_to_constr(errcode, error_table, sizeof(error_table)/sizeof(int), -1);
  27. if (errconstr == Val_int(-1)) {
Add Comment
Please, Sign In to add comment