$NetBSD$

--- index/partition.c.orig	2002-09-27 23:41:11.000000000 +0200
+++ index/partition.c
@@ -28,7 +28,9 @@ int  new_partition;
 int  files_per_partition;
 int  files_in_partition;
 int  ATLEASTONEFILE = 0;
+#ifndef errno
 extern int errno;
+#endif
 
 char patbuf[MAX_PAT];
 extern unsigned char *src_index_buf;
