diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 7 |
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 */ | ||
257 | uint64_t bb_bswap_64(uint64_t x) FAST_FUNC; | ||
258 | #endif | ||
259 | |||
257 | unsigned long long monotonic_ns(void) FAST_FUNC; | 260 | unsigned long long monotonic_ns(void) FAST_FUNC; |
258 | unsigned long long monotonic_us(void) FAST_FUNC; | 261 | unsigned long long monotonic_us(void) FAST_FUNC; |
259 | unsigned long long monotonic_ms(void) FAST_FUNC; | 262 | unsigned long long monotonic_ms(void) FAST_FUNC; |