From 1ba5bad25f7d8a749e729f0f47fc6aed3859349c Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Sun, 30 Aug 1987 10:11:17 +0000 Subject: [PATCH] Add #ifdef MAGIC so it can come from the compile command (Gilmore). --- src/file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/file.c b/src/file.c index 66cb4cb5..7308b93c 100644 --- a/src/file.c +++ b/src/file.c @@ -15,7 +15,11 @@ int check = 0, /* check format of magic file */ nbytes = 0, /* number of bytes read from a datafile */ nmagic = 0; /* number of valid magic[]s */ FILE *efopen(); +#ifdef MAGIC +char *magicfile = MAGIC; /* where magic be found */ +#else char *magicfile = "/etc/magic"; /* where magic be found */ +#endif char *progname; struct stat statbuf; struct utimbuf { /* for utime(2), belongs in a .h file */ -- 2.40.0