[AD] setup.c fails to compile with --disable-ossdigi

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


"Mr_Bones_" gave me the attached patch in #allegro to fix it. I didn't
follow that driver constants change (I guess, in prior allegro versions,
DIGI_OSS wouldn't have been defined if OSS was not available), so not
sure this is the right way to fix it.

-- 
Elias Pschernig
Index: setup/setup.c
===================================================================
RCS file: /cvsroot/alleg/allegro/setup/setup.c,v
retrieving revision 1.39
diff -u -p -r1.39 setup.c
--- setup/setup.c	5 Aug 2004 10:14:10 -0000	1.39
+++ setup/setup.c	29 Jan 2005 19:33:16 -0000
@@ -216,8 +216,8 @@ static PARAMETER parameters[] =
 
  #ifdef DIGI_OSS
    { "oss_driver",         param_str,     "",      "/dev/dsp", NULL,             "Drv:",     "",         NULL,    "Name of the driver (e.g. /dev/dsp)" },
-   { "oss_numfrags",       param_int,     "",      "-1",       &_oss_numfrags,   "NumFr:",   NULL,       NULL,    "Number of fragments (use 2, other values make little difference)" },
-   { "oss_fragsize",       param_num,     "",      "-1",       &_oss_fragsize,   "Siz:",     NULL,       NULL,    "Size of fragment (small values -- choppy sound, large values -- delayed sound)" },
+   { "oss_numfrags",       param_int,     "",      "-1",       NULL,             "NumFr:",   NULL,       NULL,    "Number of fragments (use 2, other values make little difference)" },
+   { "oss_fragsize",       param_num,     "",      "-1",       NULL,             "Siz:",     NULL,       NULL,    "Size of fragment (small values -- choppy sound, large values -- delayed sound)" },
  #endif
 
  #ifdef MIDI_OSS


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/