From: Antonio Ospite Date: Tue, 22 May 2012 14:16:15 +0000 (+0200) Subject: am7xxx-play: add a fallback definition for ENOTSUP X-Git-Tag: v0.1.3~28 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/e4da452bcec7be43e19b552f2fdbecaff455a1dd?ds=inline am7xxx-play: add a fallback definition for ENOTSUP --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 8a52ae0..49b5234 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -35,6 +35,13 @@ #include +/* On some systems ENOTSUP is not defined, fallback to its value on + * linux which is equal to EOPNOTSUPP which is 95 + */ +#ifndef ENOTSUP +#define ENOTSUP 95 +#endif + static unsigned int run = 1; struct video_input_ctx {