Skip to content

Commit

Permalink
Merge pull request #157 from sifive/fix-timeval
Browse files Browse the repository at this point in the history
Get definition of struct timeval from sys/time.h
  • Loading branch information
nategraff-sifive authored Aug 14, 2019
2 parents 77df490 + 955950e commit 2444567
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions metal/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@

#include <time.h>

#include <sys/types.h>
#include <sys/time.h>

/*!
* @file time.h
* @brief API for dealing with time
*/

struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};

int metal_gettimeofday(struct timeval *tp, void *tzp);

time_t metal_time(void);
Expand Down

0 comments on commit 2444567

Please sign in to comment.