Tiny patch for 0.39 req'd for FreeBSD, possibly other OSes?

"Bruce M. Walker" <[email protected]> Mon, 18 Nov 2002 11:53:47 -0500 (EST)
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <[email protected]>
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-patch.txt (text/plain, 433 B)
*** 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