[PATCH 2/3] osnet: Include time.h on GNU systems

Damien Zammit <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel,gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
Signed-off-by: Damien Zammit <[email protected]>
---
 external/cddl/osnet/sys/sys/time.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/external/cddl/osnet/sys/sys/time.h b/external/cddl/osnet/sys/sys/time.h
index 669586b45d23..e701e079221a 100644
--- a/external/cddl/osnet/sys/sys/time.h
+++ b/external/cddl/osnet/sys/sys/time.h
@@ -96,7 +96,7 @@ ddi_get_lbolt64(void)
 int clock_gettime(clockid_t, struct timespec *)
     __RENAME(__clock_gettime50);
 #endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__GNU__)
 #include <time.h>
 #endif
 
-- 
2.25.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.