diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-01-30 23:19:58 -0800 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2022-02-14 17:20:22 -0800 |
commit | bde86a6cba7ea2c9f01f13a9fdd0a9b7d1b4512e (patch) | |
tree | 0d904d34449e62add52bc7d3c6a02c1927a80356 /utils/mktorrent/patches | |
parent | 1cb6f062004fcd1b278ed946f6f535ded52d1836 (diff) |
mktorrent: fix bad format for 64bit platforms
The Makefile tries and fails to run a binary that sets it properly. Just
hardcode it.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/mktorrent/patches')
-rw-r--r-- | utils/mktorrent/patches/010-format.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/mktorrent/patches/010-format.patch b/utils/mktorrent/patches/010-format.patch new file mode 100644 index 000000000..e7f62b04f --- /dev/null +++ b/utils/mktorrent/patches/010-format.patch @@ -0,0 +1,20 @@ +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -61,6 +61,6 @@ OBJS = $(SRCS:.c=.o) + all: $(program) + + %.o: %.c $(HEADERS) prefix +- $(CC) $(CFLAGS) $(DEFINES) -DPRIoff="\"$(OFFPRFX)d\"" -DVERSION="\"$(version)\"" -c $< ++ $(CC) $(CFLAGS) $(DEFINES) -DPRIoff="PRId64 \"d\"" -DVERSION="\"$(version)\"" -c $< + + include rules.mk +--- a/init.c ++++ b/init.c +@@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fi + #include <sys/stat.h> /* the stat structure */ + #include <unistd.h> /* getopt(), getcwd(), sysconf() */ + #include <string.h> /* strcmp(), strlen(), strncpy() */ ++#include <inttypes.h> + #ifdef USE_LONG_OPTIONS + #include <getopt.h> /* getopt_long() */ + #endif |