From: oleg Date: Wed, 19 May 2004 05:32:47 +0000 (+0000) Subject: Fixed use of dprintf(). The define of dprintf() is a part in X-Git-Tag: YAZ.2.0.23~18 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=d57c9b0a346d64f0ed2a1003d90365794564e0b6;p=yaz-moved-to-github.git Fixed use of dprintf(). The define of dprintf() is a part in some linux based OS. --- 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