]> git.pld-linux.org Git - packages/doomlegacy.git/commitdiff
8276a8ba83fef64fb15c5f7e5cbb685c doomlegacy-nosndstat.patch
authormisi3k <misi3k@pld-linux.org>
Sat, 22 Feb 2003 20:55:50 +0000 (20:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    doomlegacy-nosndstat.patch -> 1.3

doomlegacy-nosndstat.patch [new file with mode: 0644]

diff --git a/doomlegacy-nosndstat.patch b/doomlegacy-nosndstat.patch
new file mode 100644 (file)
index 0000000..2311c48
--- /dev/null
@@ -0,0 +1,25 @@
+--- doomlegacy_src/linux_x/musserv/sequencer.c.orig    Sat Feb 22 21:25:59 2003
++++ doomlegacy_src/linux_x/musserv/sequencer.c Sat Feb 22 21:27:23 2003
+@@ -177,11 +177,7 @@
+   seq_dev = num_fm;
+   sndstat = fopen("/dev/sndstat", "r");
+-  if (sndstat == NULL)
+-    {
+-    printf("musserver: could not open /dev/sndstat, exiting.\n");
+-    exit(1);
+-    }
++  if (sndstat != NULL) {
+   fgets(sndver, 100, sndstat);
+   for (x = 0; x < strlen(sndver); x++)
+     if (sndver[x] == '-')
+@@ -199,6 +195,9 @@
+       }
+   voxdate = atoi(snddate);
+   fclose(sndstat);
++  } else {
++   voxdate = 0; /* kernel 2.4 doesn't have sndstat */
++  }
+   voices = malloc(sinfo[seq_dev].nr_voices * sizeof(struct synth_voice));
+   for (x = 0; x < sinfo[seq_dev].nr_voices; x++)
This page took 0.073798 seconds and 4 git commands to generate.