$NetBSD: patch-ac,v 1.2 2011/12/05 10:18:17 wiz Exp $

--- db/mut_pthread.c.orig	2009-05-28 12:54:31 +0300
+++ db/mut_pthread.c	2009-05-28 12:55:30 +0300
@@ -201,7 +201,11 @@ CDB___db_pthread_mutex_lock(mutexp)
 			 * call, and Solaris delivers the signal to the wrong
 			 * LWP.
 			 */
-			if (ret != 0 && ret != ETIME && ret != ETIMEDOUT)
+			if (ret != 0 &&
+#ifdef ETIME
+			    ret != ETIME &&
+#endif
+			    ret != ETIMEDOUT)
 				return (ret);
 		}
 
