From fcf29dd7832ae9e1e863ce0b81ec9b916e25ea6b Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Wed, 29 Feb 2012 21:27:33 +0000 Subject: [PATCH] 3291. [port] Fixed a build error on systems without ENOTSUP. [RT #28200] --- CHANGES | 3 +++ lib/isc/unix/stdio.c | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 393f570b5a..2262340cff 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3291. [port] Fixed a build error on systems without ENOTSUP. + [RT #28200] + 3290. [bug] was not being installed. [RT #28169] 3288. [bug] dlz_destroy() function wasn't correctly registered diff --git a/lib/isc/unix/stdio.c b/lib/isc/unix/stdio.c index 192adec64b..c4b59f4e9f 100644 --- a/lib/isc/unix/stdio.c +++ b/lib/isc/unix/stdio.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: stdio.c,v 1.8.814.3 2011/12/22 08:50:45 marka Exp $ */ +/* $Id: stdio.c,v 1.8.814.4 2012/02/29 21:27:33 each Exp $ */ #include @@ -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;