From d57c9b0a346d64f0ed2a1003d90365794564e0b6 Mon Sep 17 00:00:00 2001 From: oleg Date: Wed, 19 May 2004 05:32:47 +0000 Subject: [PATCH] Fixed use of dprintf(). The define of dprintf() is a part in some linux based OS. --- util/benchmark.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/util/benchmark.c b/util/benchmark.c index 2d36326..c38eb9b 100644 --- a/util/benchmark.c +++ b/util/benchmark.c @@ -1,4 +1,4 @@ -/* $Id: benchmark.c,v 1.4 2004-01-26 21:05:34 mike Exp $ +/* $Id: benchmark.c,v 1.5 2004-05-19 05:32:47 oleg Exp $ * Copyright (C) 2003-2004 Index Data Aps * * This file is part of the YAZ toolkit. @@ -39,8 +39,9 @@ struct options { static int test(char *host, int port); +#ifndef HAVE_DPRINTF static void dprintf(int level, char *fmt, ...); - +#endif int main(int argc, char **argv) { @@ -115,7 +116,7 @@ static int test(char *host, int port) return 1; } - +#ifndef HAVE_DPRINTF static void dprintf(int level, char *fmt, ...) { va_list ap; @@ -129,3 +130,4 @@ static void dprintf(int level, char *fmt, ...) fputc('\n', stderr); va_end(ap); } +#endif -- 1.7.10.4