You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Havard <br...@kheldar.apana.org.au> on 1997/12/20 05:05:30 UTC
mod_mime_magic and OS/2
I just found that this module won't compile under OS/2 as there's no
block device files, S_IFBLK is undefined. Here's the obvious patch.
Index: src/modules/standard/mod_mime_magic.c
===================================================================
RCS file: /cvs/apachen/src/modules/standard/mod_mime_magic.c,v
retrieving revision 1.21
diff -u -w -r1.21 mod_mime_magic.c
--- mod_mime_magic.c 1997/12/19 23:53:01 1.21
+++ mod_mime_magic.c 1997/12/20 02:56:46
@@ -1492,6 +1492,7 @@
*/
(void) magic_rsl_puts(r, MIME_BINARY_UNKNOWN);
return DONE;
+#ifdef S_IFBLK
case S_IFBLK:
/*
* (void) magic_rsl_printf(r,"block special (%d/%d)",
@@ -1500,6 +1501,7 @@
(void) magic_rsl_puts(r, MIME_BINARY_UNKNOWN);
return DONE;
/* TODO add code to handle V7 MUX and Blit MUX files */
+#endif
#ifdef S_IFIFO
case S_IFIFO:
/*
--
______________________________________________________________________________
| Brian Havard | "He is not the messiah! |
| brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian |
------------------------------------------------------------------------------
Re: mod_mime_magic and OS/2
Posted by Dean Gaudet <dg...@arctic.org>.
+1
Dean
On Sat, 20 Dec 1997, Brian Havard wrote:
> I just found that this module won't compile under OS/2 as there's no
> block device files, S_IFBLK is undefined. Here's the obvious patch.
>
>
> Index: src/modules/standard/mod_mime_magic.c
> ===================================================================
> RCS file: /cvs/apachen/src/modules/standard/mod_mime_magic.c,v
> retrieving revision 1.21
> diff -u -w -r1.21 mod_mime_magic.c
> --- mod_mime_magic.c 1997/12/19 23:53:01 1.21
> +++ mod_mime_magic.c 1997/12/20 02:56:46
> @@ -1492,6 +1492,7 @@
> */
> (void) magic_rsl_puts(r, MIME_BINARY_UNKNOWN);
> return DONE;
> +#ifdef S_IFBLK
> case S_IFBLK:
> /*
> * (void) magic_rsl_printf(r,"block special (%d/%d)",
> @@ -1500,6 +1501,7 @@
> (void) magic_rsl_puts(r, MIME_BINARY_UNKNOWN);
> return DONE;
> /* TODO add code to handle V7 MUX and Blit MUX files */
> +#endif
> #ifdef S_IFIFO
> case S_IFIFO:
> /*
>
> --
> ______________________________________________________________________________
> | Brian Havard | "He is not the messiah! |
> | brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian |
> ------------------------------------------------------------------------------
>
>