[vlc-devel] [PATCH 2/2] vlc_fixups: define EPROTO if necessary on OS/2

Rémi Denis-Courmont remi at remlab.net
Tue Oct 4 16:56:45 CEST 2016


Le torstaina 29. syyskuuta 2016, 15.34.48 EEST KO Myung-Hun a écrit :
> ---
>  include/vlc_fixups.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
> index 7a76ef4..f87179d 100644
> --- a/include/vlc_fixups.h
> +++ b/include/vlc_fixups.h
> @@ -473,6 +473,11 @@ struct addrinfo
>  };
> 
>  void freeaddrinfo (struct addrinfo *res);
> +
> +# include <errno.h>
> +# ifndef EPROTO
> +#  define EPROTO (ELAST + 1)
> +# endif
>  #endif
> 
>  /* math.h */

Not sure going beyond ELAST is a good idea. Isn´t there a sys_errlist[] or 
equivalent on OS/2?

-- 
Rémi Denis-Courmont
Nonsponsored VLC developer
http://www.remlab.net/CV.pdf



More information about the vlc-devel mailing list