httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: mod_mime_magic and OS/2
Date Sat, 20 Dec 1997 09:52:33 GMT
+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 |
>  ------------------------------------------------------------------------------
> 
> 


Mime
View raw message