Project

General

Profile

Actions

Bug #6002

open

loadavg.h missing definition of hrtime_t

Added by Peter Tribble almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-06-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

The include file /usr/include/sys/loadavg.h contains references to hrtime_t, but does not ensure it's defined.

According to GETLOADAVG, you need only include

#include <sys/loadavg.h>

Therefore, sys/loadavg should itself #include <sys/time.h> in order to ensure that hrtime_t is defined.

(This omission causes istatd to fail to build. This dependency was introduced via the fix for bug #5100.)

No data to display

Actions

Also available in: Atom PDF