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

Bruce M. Walker mod_mp3@lists.tangent.org
Mon, 18 Nov 2002 11:53:47 -0500 (EST)


This message is in MIME format.

---MOQ1037638427ddc9ef425bb5148d3109db2edfb18405
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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
---MOQ1037638427ddc9ef425bb5148d3109db2edfb18405
Content-Type: text/plain; name="mod_mp3-patch.txt"; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="mod_mp3-patch.txt"

*** 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

---MOQ1037638427ddc9ef425bb5148d3109db2edfb18405--