[Glibc-bsd-commits] r4111 - in trunk/freebsd-buildutils/debian: . local/include
Robert Millan
rmh at alioth.debian.org
Thu Feb 23 19:57:22 UTC 2012
Author: rmh
Date: 2012-02-23 19:57:22 +0000 (Thu, 23 Feb 2012)
New Revision: 4111
Modified:
trunk/freebsd-buildutils/debian/changelog
trunk/freebsd-buildutils/debian/local/include/unistd.h
Log:
Make feature_present() backward-compatible with pre-900038 kernels.
Modified: trunk/freebsd-buildutils/debian/changelog
===================================================================
--- trunk/freebsd-buildutils/debian/changelog 2012-02-23 19:56:13 UTC (rev 4110)
+++ trunk/freebsd-buildutils/debian/changelog 2012-02-23 19:57:22 UTC (rev 4111)
@@ -1,8 +1,9 @@
freebsd-buildutils (9.0-8) UNRELEASED; urgency=low
* Add getosreldate() to local headers.
+ * Make feature_present() backward-compatible with pre-900038 kernels.
- -- Robert Millan <rmh at debian.org> Thu, 23 Feb 2012 20:33:10 +0100
+ -- Robert Millan <rmh at debian.org> Thu, 23 Feb 2012 20:56:56 +0100
freebsd-buildutils (9.0-7) unstable; urgency=low
Modified: trunk/freebsd-buildutils/debian/local/include/unistd.h
===================================================================
--- trunk/freebsd-buildutils/debian/local/include/unistd.h 2012-02-23 19:56:13 UTC (rev 4110)
+++ trunk/freebsd-buildutils/debian/local/include/unistd.h 2012-02-23 19:57:22 UTC (rev 4111)
@@ -135,6 +135,9 @@
size_t len;
int i;
+ if ((!strcmp(feature, "inet") || !strcmp(feature, "inet6")) && getosreldate() <= 900038)
+ return (1);
+
if (asprintf(&mib, "kern.features.%s", feature) < 0)
return (0);
len = sizeof(i);
More information about the Glibc-bsd-commits
mailing list