Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-10-19 11:30:40 +0200
committerArthur de Jong <arthur@arthurdejong.org>2007-10-19 11:30:40 +0200
commit7c2dcc4de07c5329e409641a51ee726585f87e2e (patch)
tree5414209da43d13354111887f31e17d10afe0442b
parent91625e8a9a042b375d125d621e0766f122c1c2f5 (diff)
fix usage of DEBUG_TIO_STATS
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@440 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--common/tio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/tio.c b/common/tio.c
index d49a20a..445cbfa 100644
--- a/common/tio.c
+++ b/common/tio.c
@@ -30,6 +30,7 @@
#include <errno.h>
#include <string.h>
#include <signal.h>
+#include <stdio.h>
#include "tio.h"
@@ -150,10 +151,10 @@ TFILE *tio_fdopen(int fd,struct timeval *readtimeout,struct timeval *writetimeou
fp->readtimeout.tv_usec=readtimeout->tv_usec;
fp->writetimeout.tv_sec=writetimeout->tv_sec;
fp->writetimeout.tv_usec=writetimeout->tv_usec;
-#ifdef TIO_STATS
+#ifdef DEBUG_TIO_STATS
fp->byteswritten=0;
fp->bytesread=0;
-#endif
+#endif /* DEBUG_TIO_STATS */
return fp;
}