[MPlayer-dev-eng] vidix/drivers/mga_vid.c and ENOTSUP error code

Steven M. Schultz sms at 2BSD.COM
Mon Jan 14 18:30:19 CET 2002


Greetings -

	Small problem compiling vidix/drivers/mga_vid.c on BSD/OS this
	morning.

	It seems that systems vary in the spelling of the error code name
	for "not supported".    On some systems (linux) it's ENOTSUP, on
	others it is EOPNOTSUPP.

	My suggested change is trivial:

--- mga_vid.c.dist	Sun Jan 13 14:14:06 2002
+++ mga_vid.c	Mon Jan 14 09:24:43 2002
@@ -56,6 +56,10 @@
 #include "../../libdha/libdha.h"
 #include "mga_vid.h"
 
+#if	!defined(ENOTSUP) && defined(EOPNOTSUPP)
+#define ENOTSUP EOPNOTSUPP
+#endif
+
 #define TRUE 1
 #define FALSE 0
 
	That should work for all systems that have EOPNOTSUPP but do not
	have ENOTSUP.

	What do you think?

	Steven Schultz
	sms at 2bsd.com



More information about the MPlayer-dev-eng mailing list