Parcourir la source

some ports define ENOTSUP

A port or two (like hppa) does define ENOTSUP, so don't assume that
everyone needs this fallback define.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger il y a 16 ans
Parent
commit
4727590322
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      libc/sysdeps/linux/common/bits/errno.h

+ 3 - 1
libc/sysdeps/linux/common/bits/errno.h

@@ -25,7 +25,9 @@
 # include <linux/errno.h>
 
 /* Linux has no ENOTSUP error code.  */
-# define ENOTSUP EOPNOTSUPP
+# ifndef ENOTSUP
+#  define ENOTSUP EOPNOTSUPP
+# endif
 
 /* Older Linux versions also had no ECANCELED error code.  */
 # ifndef ECANCELED