fix are from: Arkadiusz Miskiewicz <arekm@pld-linux.org>
#include "patchlevel.h"
#ifndef lint
-FILE_RCSID("@(#)$Id: magic.c,v 1.30 2005/10/17 15:13:31 christos Exp $")
+FILE_RCSID("@(#)$Id: magic.c,v 1.31 2005/10/17 15:14:44 christos Exp $")
#endif /* lint */
#ifdef __EMX__
private void close_and_restore(const struct magic_set *, const char *, int,
const struct stat *);
+#ifndef STDIN_FILENO
+#define STDIN_FILENO 0
+#endif
+
public struct magic_set *
magic_open(int flags)
{
goto done;
}
-#ifndef STDIN_FILENO
-#define STDIN_FILENO 0
-#endif
if (inname == NULL)
fd = STDIN_FILENO;
else if ((fd = open(inname, O_RDONLY)) < 0) {