Add place holder function for pc to make pc build pass
authorfanyang-mono <yangfan@microsoft.com>
Tue, 14 Apr 2020 18:30:14 +0000 (14:30 -0400)
committerfanyang-mono <yangfan@microsoft.com>
Tue, 14 Apr 2020 18:30:14 +0000 (14:30 -0400)
src/mono/mono/utils/mono-time.c

index e03efae..0767221 100644 (file)
@@ -249,7 +249,7 @@ mono_clock_get_time_ns (void)
        return ((guint64) mach_ts.tv_sec * 1000000000) + (guint64) mach_ts.tv_nsec;
 }
 
-#else
+#elseif defined(HOST_LINUX)
 
 static clockid_t sampling_posix_clock;
 
@@ -264,4 +264,13 @@ mono_clock_get_time_ns (void)
        return ((guint64) ts.tv_sec * 1000000000) + (guint64) ts.tv_nsec;
 }
 
+#else
+
+guint64
+mono_clock_get_time_ns (void)
+{
+       // TODO: need to implement time stamp function for PC
+       return 0;
+}
+
 #endif