Re: Tiny patch for 0.39 req'd for FreeBSD, possibly other OSes?
Jon disnard <[email protected]> Mon, 18 Nov 2002 11:17:04 -0600
| Newsgroups | gmane.comp.apache.mod-mp3 |
|---|---|
| Message-ID | <[email protected]> |
What version of the code is that? On FreeBSD, the Makefile from ports/www/mod_mp3/Makefile claims to use version .39. That version is known to compile for me on freebsd -stable (as of the last time I built the bits). What version of Apache, 1.3.27? I'll try to test your patch later on. -Jon Bruce M. Walker wrote: >In mod_mp3.c, the initial value of shmkey is wrong for at least FreeBSD. It >needs to be IPC_PRIVATE, else Apache won't start. > >Patch attached. > > >(I hope this helps atone for my earlier foot-in-mouth exercise. :-) > >-bmw > >------------------------------------------------------------------------ > >*** mod_mp3.c.orig Mon Nov 18 11:26:53 2002 >--- mod_mp3.c Mon Nov 18 11:26:42 2002 >*************** >*** 6,12 **** > #include "mod_mp3.h" > > /* Setup for our scoreboard */ >! static key_t shmkey = IPC_CREAT; > > extern mp3_dispatch internal; > #ifdef MYSQL_ENABLED >--- 6,12 ---- > #include "mod_mp3.h" > > /* Setup for our scoreboard */ >! static key_t shmkey = IPC_PRIVATE; > > extern mp3_dispatch internal; > #ifdef MYSQL_ENABLED > >