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 @@
#include <termios.h>
#include <time.h>
#include <unistd.h>
-/* Try to pull in PATH_MAX */
-#include <limits.h>
#include <sys/param.h>
#ifdef HAVE_MNTENT_H
# include <mntent.h>
@@ -254,6 +252,11 @@ extern int *const bb_errno;
#define errno (*bb_errno)
#endif
+#if !(ULONG_MAX > 0xffffffff)
+/* Only 32-bit CPUs need this, 64-bit ones use inlined version */
+uint64_t bb_bswap_64(uint64_t x) FAST_FUNC;
+#endif
+
unsigned long long monotonic_ns(void) FAST_FUNC;
unsigned long long monotonic_us(void) FAST_FUNC;
unsigned long long monotonic_ms(void) FAST_FUNC;