summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/unix/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/stdio.c')
-rw-r--r--usr.sbin/bind/lib/isc/unix/stdio.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/stdio.c b/usr.sbin/bind/lib/isc/unix/stdio.c
index 3cd4f5e1fdb..09b203b8025 100644
--- a/usr.sbin/bind/lib/isc/unix/stdio.c
+++ b/usr.sbin/bind/lib/isc/unix/stdio.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: stdio.c,v 1.3 2019/12/17 01:46:37 sthen Exp $ */
+/* $Id: stdio.c,v 1.4 2020/01/22 08:17:01 tedu Exp $ */
#include <config.h>
@@ -53,11 +53,7 @@ isc_result_t
isc_stdio_seek(FILE *f, off_t offset, int whence) {
int r;
-#ifdef HAVE_FSEEKO
r = fseeko(f, offset, whence);
-#else
- r = fseek(f, offset, whence);
-#endif
if (r == 0)
return (ISC_R_SUCCESS);
else
@@ -70,11 +66,7 @@ isc_stdio_tell(FILE *f, off_t *offsetp) {
REQUIRE(offsetp != NULL);
-#ifdef HAVE_FTELLO
r = ftello(f);
-#else
- r = ftell(f);
-#endif
if (r >= 0) {
*offsetp = r;
return (ISC_R_SUCCESS);