$NetBSD: patch-ad,v 1.3 2005/12/29 13:46:16 joerg Exp $

--- src/include/portable.h.orig	2005-12-28 21:36:47.000000000 +0000
+++ src/include/portable.h
@@ -364,7 +364,7 @@ typedef struct dirent plp_dir_t;
 # endif
 #endif
 
-#ifndef HAVE_ERRNO_DECL
+#ifndef HAVE_DECL_ERRNO
  extern int errno;
 #endif
 
