This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: file
- To: Todd Goodman <tsg1 at earthlink dot net>, gnu-win32 at cygnus dot com
- Subject: Re: file
- From: Corinna Vinschen <corinna dot vinschen at cityweb dot de>
- Date: Sun, 01 Nov 1998 02:02:39 +0100
- References: <002101be036c$76de8b40$7f93fed0@tgoodman8>
Hi Todd,
> I'm sure I'm overlooking something obvious, but is the 'file' command
> or equivalent available anywhere?
Look at the GNU Homepage. There you will find the original
sources. Only one patch is needed, because
#include <sys/sysmacros.h> isn't available in cygwin.
Regards,
Corinna
------- snip -------
--- fsmagic.c.orig Sun Nov 01 00:50:08 1998
+++ fsmagic.c Sun Nov 01 00:53:20 1998
@@ -38,7 +38,13 @@
# endif
#endif
#ifndef major /* if `major' not defined in types.h, */
+#ifdef __CYGWIN32__
+#define major(dev) (((unsigned) (dev))>>8)
+#define minor(dev) ((dev)&0xff)
+#define makedev(major,minor) (((major)<<8)|(minor))
+#else
#include <sys/sysmacros.h> /* try this one. */
+#endif
#endif
#ifndef major /* still not defined? give up, manual
intervention needed */
/* If cc tries to compile this, read and act on it. */
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".