aboutsummaryrefslogtreecommitdiffstats
path: root/console/showqt.c
diff options
context:
space:
mode:
Diffstat (limited to 'console/showqt.c')
-rw-r--r--console/showqt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/console/showqt.c b/console/showqt.c
index e721bf5..12a9d18 100644
--- a/console/showqt.c
+++ b/console/showqt.c
@@ -11,6 +11,11 @@
#include <inttypes.h>
#include <time.h>
+#ifndef PRId64
+# define PRId64 "lld"
+# define PRIx64 "llx"
+#endif
+
#if BYTE_ORDER == LITTLE_ENDIAN
# define SWAP2(x) (((x>>8) & 0x00ff) |\
((x<<8) & 0xff00))
@@ -568,7 +573,7 @@ static int handle_classic_atom(int fh, off_t pos, off_t size, int depth)
off = 8;
}
printf("0x%08" PRIx64 " 0x%08" PRIx64 " %*s%s\n",
- pos,asize,depth,"",strfcc(a.type));
+ (int64_t)pos,(int64_t)asize,depth,"",strfcc(a.type));
switch (a.type) {
case a_dinf:
case a_edts:

Privacy Policy