diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2016-01-02 18:38:31 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-01-02 18:48:57 +0100 |
commit | 05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch) | |
tree | 3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/mapped-time.h | |
parent | 5714421bb1d066abebc7e993bdf06e655b879b3a (diff) |
allow pfinet to link using -O0
This fixes a long list of undefined references when compiling with -O0
by using static instead of extern in header files.
Diffstat (limited to 'pfinet/mapped-time.h')
-rw-r--r-- | pfinet/mapped-time.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pfinet/mapped-time.h b/pfinet/mapped-time.h index bcbfc6d4..01f2dcc8 100644 --- a/pfinet/mapped-time.h +++ b/pfinet/mapped-time.h @@ -8,13 +8,13 @@ extern volatile struct mapped_time_value *mapped_time; extern long long root_jiffies; -extern inline int +static inline int read_mapped_secs () { return mapped_time->seconds; } -extern inline int +static inline int fetch_jiffies () { struct timeval tv; |