1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

minor changes to guarantee that the code is compatible to UNIX

This commit is contained in:
Stefan Lankes 2016-03-13 00:11:27 +01:00
parent 6c89f85854
commit b38914d3cf

View file

@ -416,6 +416,7 @@ checktick()
#include <time.h>
#include <sys/time.h>
#ifdef __hermit__
extern unsigned int get_cpufreq();
static unsigned long long start_tsc;
@ -430,10 +431,11 @@ __attribute__((constructor)) static void timer_init()
{
start_tsc = rdtsc();
}
#endif
double mysecond()
{
#if 0
#ifndef __hermit__
struct timeval tp;
struct timezone tzp;
int i;