$NetBSD: patch-al,v 1.1.1.1 2007/10/17 21:35:53 agc Exp $

--- lib/include/hgfsUtil.h	2007/09/28 21:35:00	1.1
+++ lib/include/hgfsUtil.h	2007/09/28 21:36:02
@@ -39,6 +39,7 @@
        !defined(__timespec_defined) && \
        !defined(sun) && \
        !defined(__FreeBSD__) && \
+       !defined(__NetBSD__) && \
        !__APPLE__ && \
        !defined(_WIN32)
 struct timespec {
@@ -75,7 +76,7 @@
 /*
  * Older FreeBSDs do not define EPROTO, so we'll define our own error code.
  */
-#if defined(__FreeBSD__) && !defined(EPROTO)
+#if (defined(__FreeBSD__)  || defined(__NetBSD__)) && !defined(EPROTO)
 #define EPROTO (ELAST + 1)
 #endif
 
