aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index b16157d46..c161ed7e2 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -37,8 +37,6 @@
37#include <termios.h> 37#include <termios.h>
38#include <time.h> 38#include <time.h>
39#include <unistd.h> 39#include <unistd.h>
40/* Try to pull in PATH_MAX */
41#include <limits.h>
42#include <sys/param.h> 40#include <sys/param.h>
43#ifdef HAVE_MNTENT_H 41#ifdef HAVE_MNTENT_H
44# include <mntent.h> 42# include <mntent.h>
@@ -254,6 +252,11 @@ extern int *const bb_errno;
254#define errno (*bb_errno) 252#define errno (*bb_errno)
255#endif 253#endif
256 254
255#if !(ULONG_MAX > 0xffffffff)
256/* Only 32-bit CPUs need this, 64-bit ones use inlined version */
257uint64_t bb_bswap_64(uint64_t x) FAST_FUNC;
258#endif
259
257unsigned long long monotonic_ns(void) FAST_FUNC; 260unsigned long long monotonic_ns(void) FAST_FUNC;
258unsigned long long monotonic_us(void) FAST_FUNC; 261unsigned long long monotonic_us(void) FAST_FUNC;
259unsigned long long monotonic_ms(void) FAST_FUNC; 262unsigned long long monotonic_ms(void) FAST_FUNC;