[Glibc-bsd-commits] r4023 - in trunk/freebsd-buildutils/debian: . local/include/sys
Robert Millan
rmh at alioth.debian.org
Sat Jan 28 21:17:33 UTC 2012
Author: rmh
Date: 2012-01-28 21:17:33 +0000 (Sat, 28 Jan 2012)
New Revision: 4023
Added:
trunk/freebsd-buildutils/debian/local/include/sys/errno.h
Modified:
trunk/freebsd-buildutils/debian/changelog
Log:
Add local sys/errno.h.
Modified: trunk/freebsd-buildutils/debian/changelog
===================================================================
--- trunk/freebsd-buildutils/debian/changelog 2012-01-28 21:16:06 UTC (rev 4022)
+++ trunk/freebsd-buildutils/debian/changelog 2012-01-28 21:17:33 UTC (rev 4023)
@@ -4,8 +4,9 @@
HEAD.
* Add __BEGIN_DECLS / __END_DECLS in local unistd.h.
* Fix local endian.h to use native <sys/endian.h> on GNU/kFreeBSD.
+ * Add local sys/errno.h.
- -- Robert Millan <rmh at debian.org> Sat, 28 Jan 2012 19:24:52 +0100
+ -- Robert Millan <rmh at debian.org> Sat, 28 Jan 2012 22:17:24 +0100
freebsd-buildutils (9.0-2) unstable; urgency=low
Added: trunk/freebsd-buildutils/debian/local/include/sys/errno.h
===================================================================
--- trunk/freebsd-buildutils/debian/local/include/sys/errno.h (rev 0)
+++ trunk/freebsd-buildutils/debian/local/include/sys/errno.h 2012-01-28 21:17:33 UTC (rev 4023)
@@ -0,0 +1,13 @@
+#ifdef _ERRNO_H
+
+/* We were included by <bits/errno.h> in order to obtain the full list of
+ errno codes. Fallback to the real thing. */
+# include_next <sys/errno.h>
+
+#else
+
+/* We were included by some FreeBSD program which just wanted <errno.h>
+ and chose to use the unportable <sys/errno.h>. */
+# include_next <errno.h>
+
+#endif
More information about the Glibc-bsd-commits
mailing list