$NetBSD: patch-ab,v 1.11 2000/12/15 22:32:17 hubertf Exp $

--- xlock/xlock.c.orig	Tue Nov 28 18:44:01 2000
+++ xlock/xlock.c
@@ -609,7 +609,9 @@
 #endif
 #else /* XFree86 < 4.x */
 #include <X11/extensions/dpms.h>
+#ifndef __NetBSD__
 extern unsigned char DPMSQueryExtension(Display *, int *, int *);
+#endif
 extern int  DPMSGetTimeouts(Display *, unsigned short *, unsigned short *, unsigned short *);
 extern int  DPMSSetTimeouts(Display *, unsigned short, unsigned short, unsigned short);
 #endif
