diff options
author | Ron Yorston <rmy@pobox.com> | 2021-10-14 13:28:05 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-10-14 13:28:05 +0100 |
commit | a0366fde4cadbdce03540c683611587dbcfb3c48 (patch) | |
tree | 1311cd03a05954ac05cacaf73bd986032ab86178 /include | |
parent | 4daf57b4fdc80422d6448c0a7914699fdedb95b8 (diff) | |
download | busybox-w32-a0366fde4cadbdce03540c683611587dbcfb3c48.tar.gz busybox-w32-a0366fde4cadbdce03540c683611587dbcfb3c48.tar.bz2 busybox-w32-a0366fde4cadbdce03540c683611587dbcfb3c48.zip |
ash: silence compiler warnings
On 64-bit systems mingw-w64 defines pid_t as a 64-bit integer so
some printf calls caused compiler warnings.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 098619305..9aff42e67 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -295,6 +295,12 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | |||
295 | #define LL_FMT "ll" | 295 | #define LL_FMT "ll" |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | #if ENABLE_PLATFORM_MINGW32 && defined(_WIN64) | ||
299 | #define PID_FMT "I64" | ||
300 | #else | ||
301 | #define PID_FMT | ||
302 | #endif | ||
303 | |||
298 | /* Large file support */ | 304 | /* Large file support */ |
299 | /* Note that CONFIG_LFS=y forces bbox to be built with all common ops | 305 | /* Note that CONFIG_LFS=y forces bbox to be built with all common ops |
300 | * (stat, lseek etc) mapped to "largefile" variants by libc. | 306 | * (stat, lseek etc) mapped to "largefile" variants by libc. |