$NetBSD: patch-ab,v 1.1 2006/01/02 17:20:18 joerg Exp $

--- src/connection_base.cxx.orig	2006-01-02 17:01:56.000000000 +0000
+++ src/connection_base.cxx
@@ -21,6 +21,7 @@
 #include <cstdio>
 #include <ctime>
 #include <stdexcept>
+#include <sys/time.h>
 
 #ifdef PQXX_HAVE_SYS_SELECT_H
 #include <sys/select.h>
