Force ll for macOS
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 28 Feb 2026 23:28:14 +0000 (23:28 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 28 Feb 2026 23:28:14 +0000 (23:28 +0000)
tar.c

diff --git a/tar.c b/tar.c
index b2f3d8b5b9d3004d9a2d3e4591604591589a4998..acbb921ae024aa2b51dc41c8e81bb6952e85f399 100755 (executable)
--- a/tar.c
+++ b/tar.c
@@ -65,7 +65,9 @@ static int write_null_bytes (FILE *fp, int n) {
 
 }
 
-#if     defined (NO_LONG_LONG)
+#if     __APPLE__
+# define    I64_FMT                     "ll"
+#elif   defined (NO_LONG_LONG)
 # define    I64_FMT                     "l"
 #elif   defined (_MSVC_)
 # define    I64_FMT                     "I64"