]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3291. [port] Fixed a build error on systems without ENOTSUP.
authorEvan Hunt <each@isc.org>
Wed, 29 Feb 2012 21:28:17 +0000 (21:28 +0000)
committerEvan Hunt <each@isc.org>
Wed, 29 Feb 2012 21:28:17 +0000 (21:28 +0000)
[RT #28200]

CHANGES
lib/isc/unix/stdio.c

diff --git a/CHANGES b/CHANGES
index 49e7a5091b95e8cc31fdd2fb4997535633037c6e..ee88a3cd7b217af6cf60733bf82a075e1226f10a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3291.  [port]          Fixed a build error on systems without ENOTSUP.
+                       [RT #28200]
+
 3290.  [bug]           <isc/hmacsha.h> was not being installed. [RT #28169]
 
 3289.  [bug]           'rndc retransfer' failed for inline zones. [RT #28036]
index 88b5c677e8c9ad60f2820de5788b223247c5ce6c..df142b45b374914930da669a8556a9fa9fa2d52a 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: stdio.c,v 1.11 2011/12/22 08:49:01 marka Exp $ */
+/* $Id: stdio.c,v 1.12 2012/02/29 21:28:17 each Exp $ */
 
 #include <config.h>
 
@@ -105,6 +105,13 @@ isc_stdio_flush(FILE *f) {
                return (isc__errno2result(errno));
 }
 
+/*
+ * OpenBSD has deprecated ENOTSUP in favor of EOPNOTSUPP.
+ */
+#if defined(EOPNOTSUPP) && !defined(ENOTSUP)
+#define ENOTSUP EOPNOTSUPP
+#endif
+
 isc_result_t
 isc_stdio_sync(FILE *f) {
        int r;