2013-09-26 17:14:40 +02:00

22 lines
659 B
Plaintext

$NetBSD: patch-aq,v 1.2 2008/08/31 06:36:48 scottr Exp $
--- lib/include/hgfsUtil.h.orig 2008-08-08 02:01:52.000000000 -0500
+++ lib/include/hgfsUtil.h
@@ -44,6 +44,7 @@
!defined(__timespec_defined) && \
!defined(sun) && \
!defined(__FreeBSD__) && \
+ !defined(__NetBSD__) && \
!__APPLE__ && \
!defined(_WIN32)
struct timespec {
@@ -96,7 +97,7 @@ struct timespec {
/*
* FreeBSD (pre-6.0) does 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