$NetBSD$

--- src/io/prom/fs/hfs/libhfs.h.orig	2006-01-12 20:20:19.000000000 +0000
+++ src/io/prom/fs/hfs/libhfs.h
@@ -18,11 +18,11 @@
  *
  */
 
+#include <errno.h>
+
 # include "hfs.h"
 # include "apple.h"
 
-extern int errno;
-
 # define ERROR(code, str)  \
     do { hfs_error = (str), errno = (code); goto fail; } while (0)
 
