1 diff -urN file-4.15.org/src/magic.c file-4.15/src/magic.c
2 --- file-4.15.org/src/magic.c 2005-06-30 18:33:01.000000000 +0200
3 +++ file-4.15/src/magic.c 2005-09-03 18:21:15.038649200 +0200
6 #include "patchlevel.h"
9 +#define STDIN_FILENO 0
13 FILE_RCSID("@(#)$Id$")
16 close_and_restore(const struct magic_set *ms, const char *name, int fd,
17 const struct stat *sb)
20 + if (fd != STDIN_FILENO)
22 if (fd != STDIN_FILENO && (ms->flags & MAGIC_PRESERVE_ATIME) != 0) {
24 * Try to restore access, modification times if read it.
30 -#define STDIN_FILENO 0
34 else if ((fd = open(inname, O_RDONLY)) < 0) {