am7xxx-play: add a fallback definition for ENOTSUP
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 22 May 2012 14:16:15 +0000 (16:16 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Tue, 22 May 2012 14:16:15 +0000 (16:16 +0200)
examples/am7xxx-play.c

index 8a52ae0..49b5234 100644 (file)
 
 #include <am7xxx.h>
 
+/* 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 {