From: Ian Darwin Date: Sun, 30 Aug 1987 10:11:17 +0000 (+0000) Subject: Add #ifdef MAGIC so it can come from the compile command (Gilmore). X-Git-Tag: FILE3_27~404 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ba5bad25f7d8a749e729f0f47fc6aed3859349c;p=file Add #ifdef MAGIC so it can come from the compile command (Gilmore). --- 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 */