tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



Signed-off-by: Damien Zammit <damien%zamaudio.com@localhost>
---
 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



Home | Main Index | Thread Index | Old Index