aboutsummaryrefslogtreecommitdiff
path: root/contrib/libc++
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2019-01-17 16:26:59 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2019-01-17 16:26:59 +0000
commitadb8eabc2e4a337a2ba49a6da845ec17055d0232 (patch)
tree85a98e38097dec1f7721c1bf0e4aa7174fdf3183 /contrib/libc++
parentcc50e5a1b82e44526f44361d0f6020e81ed3dc3a (diff)
downloadsrc-adb8eabc2e4a337a2ba49a6da845ec17055d0232.tar.gz
src-adb8eabc2e4a337a2ba49a6da845ec17055d0232.zip
Truely fix #if defined broken in -r343111
Pointy-hat-to: mckusick
Notes
Notes: svn path=/head/; revision=343115
Diffstat (limited to 'contrib/libc++')
-rw-r--r--contrib/libc++/include/errno.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/libc++/include/errno.h b/contrib/libc++/include/errno.h
index 5513485e2d11..8aebaf80821b 100644
--- a/contrib/libc++/include/errno.h
+++ b/contrib/libc++/include/errno.h
@@ -56,6 +56,7 @@ static const int __elast3 = 106;
#if defined(ELAST)
#undef ELAST
#define ELAST EINTEGRITY
+#endif
#elif !defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
#define ENOTRECOVERABLE __elast1
@@ -63,6 +64,7 @@ static const int __elast3 = 106;
#if defined(ELAST)
#undef ELAST
#define ELAST EOWNERDEAD
+#endif
#elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
#define EOWNERDEAD __elast1
@@ -70,12 +72,14 @@ static const int __elast3 = 106;
#if defined(ELAST)
#undef ELAST
#define ELAST EINTEGRITY
+#endif
#elif !defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
#define EOWNERDEAD __elast1
#if defined(ELAST)
#undef ELAST
#define ELAST EOWNERDEAD
+#endif
#elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
#define ENOTRECOVERABLE __elast1
@@ -83,18 +87,21 @@ static const int __elast3 = 106;
#if defined(ELAST)
#undef ELAST
#define ELAST EINTEGRITY
+#endif
#elif defined(EOWNERDEAD) && !defined(ENOTRECOVERABLE) && defined(EINTEGRITY)
#define ENOTRECOVERABLE __elast1
#if defined(ELAST)
#undef ELAST
#define ELAST ENOTRECOVERABLE
+#endif
#elif defined(EOWNERDEAD) && defined(ENOTRECOVERABLE) && !defined(EINTEGRITY)
#define EINTEGRITY __elast1
#if defined(ELAST)
#undef ELAST
#define ELAST EINTEGRITY
+#endif
#endif // !defined(OWNERDEAD) && !defined(NOTRECOVERABLE) && !defined(INTEGRITY)