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:
parent
6c89f85854
commit
b38914d3cf
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue