aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-08 14:41:25 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-08 14:41:25 -0500
commit7c0726a1f59e877c056fa0405bda8d39795b303b (patch)
treee153e684ef95bc937b04a8724495fdc3343114fd
parent72c272e703fd17841ea2e3bb5f54b0dbd9f0497f (diff)
downloadalftools-7c0726a1f59e877c056fa0405bda8d39795b303b.tar.gz
alf: Fix build with pcc.
-rw-r--r--src/alf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/alf.c b/src/alf.c
index fe9c342..7945799 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -33,6 +33,12 @@ long hdr_compsize_pos;
FILE *out_file, *in_file;
const char *out_filename, *atari_filename;
+
+/* pcc needs this */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
char in_filename[PATH_MAX + 1];
char hdr_filename[13];