diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-01-04 19:49:31 +0700 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-01-04 19:49:31 +0700 |
commit | 808c59093f66849fd65c283ec2f68745a98cd291 (patch) | |
tree | 53a7fca34f88c1513334deea30457ca8902f1faf /include/libbb.h | |
parent | 85031e551c05fa13e268a085983fb7f61f11dde2 (diff) | |
parent | e08ef581af510312dacba40e78a6af7ca36ffbc5 (diff) | |
download | busybox-w32-808c59093f66849fd65c283ec2f68745a98cd291.tar.gz busybox-w32-808c59093f66849fd65c283ec2f68745a98cd291.tar.bz2 busybox-w32-808c59093f66849fd65c283ec2f68745a98cd291.zip |
Merge commit 'eb7fe6dbf5bc93a229379a8047539dd8b90e0974^'
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 9ece2f9ec..0ea7700f2 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> |
@@ -265,6 +263,11 @@ extern int *const bb_errno; | |||
265 | #define errno (*bb_errno) | 263 | #define errno (*bb_errno) |
266 | #endif | 264 | #endif |
267 | 265 | ||
266 | #if !(ULONG_MAX > 0xffffffff) | ||
267 | /* Only 32-bit CPUs need this, 64-bit ones use inlined version */ | ||
268 | uint64_t bb_bswap_64(uint64_t x) FAST_FUNC; | ||
269 | #endif | ||
270 | |||
268 | unsigned long long monotonic_ns(void) FAST_FUNC; | 271 | unsigned long long monotonic_ns(void) FAST_FUNC; |
269 | unsigned long long monotonic_us(void) FAST_FUNC; | 272 | unsigned long long monotonic_us(void) FAST_FUNC; |
270 | unsigned long long monotonic_ms(void) FAST_FUNC; | 273 | unsigned long long monotonic_ms(void) FAST_FUNC; |
@@ -1557,7 +1560,7 @@ typedef struct md5_ctx_t { | |||
1557 | uint32_t C; | 1560 | uint32_t C; |
1558 | uint32_t D; | 1561 | uint32_t D; |
1559 | uint64_t total64; | 1562 | uint64_t total64; |
1560 | char wbuffer[64]; | 1563 | char wbuffer[64]; /* NB: always correctly aligned for uint64_t */ |
1561 | } md5_ctx_t; | 1564 | } md5_ctx_t; |
1562 | #else | 1565 | #else |
1563 | /* libbb/md5prime.c uses a bit different one: */ | 1566 | /* libbb/md5prime.c uses a bit different one: */ |