mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Move the definition of sbintime_t type from <sys/time.h> to <sys/types.h>.
With this change we prevent gross namespace pollution. Reported by: bde Suggested by: attilio
This commit is contained in:
parent
e234a588cb
commit
aa97685d73
2 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,6 @@ bintime_mul(struct bintime *bt, u_int x)
|
|||
((a)->frac cmp (b)->frac) : \
|
||||
((a)->sec cmp (b)->sec))
|
||||
|
||||
typedef int64_t sbintime_t;
|
||||
#define SBT_1S ((sbintime_t)1 << 32)
|
||||
#define SBT_1M (SBT_1S * 60)
|
||||
#define SBT_1MS (SBT_1S / 1000)
|
||||
|
|
|
|||
|
|
@ -188,6 +188,8 @@ typedef __rlim_t rlim_t; /* resource limit */
|
|||
#define _RLIM_T_DECLARED
|
||||
#endif
|
||||
|
||||
typedef __int64_t sbintime_t;
|
||||
|
||||
typedef __segsz_t segsz_t; /* segment size (in pages) */
|
||||
|
||||
#ifndef _SIZE_T_DECLARED
|
||||
|
|
|
|||
Loading…
Reference in a new issue