]> git.pld-linux.org Git - packages/doomlegacy.git/blame - doomlegacy-nosndstat.patch
- removed two lines with define
[packages/doomlegacy.git] / doomlegacy-nosndstat.patch
CommitLineData
52d2c3fa
JB
1--- doomlegacy-1.32/doomlegacy/linux_x/musserv/sequencer.c.orig Fri May 11 14:55:27 2001
2+++ doomlegacy-1.32/doomlegacy/linux_x/musserv/sequencer.c Wed Jul 18 17:26:02 2001
3@@ -176,11 +176,7 @@
4 seq_dev = num_fm;
5
6 sndstat = fopen("/dev/sndstat", "r");
7- if (sndstat == NULL)
8- {
9- printf("musserver: could not open /dev/sndstat, exiting.\n");
10- exit(1);
11- }
12+ if (sndstat != NULL) {
13 fgets(sndver, 100, sndstat);
14 for (x = 0; x < strlen(sndver); x++)
15 if (sndver[x] == '-')
16@@ -198,7 +194,9 @@
17 }
18 voxdate = atoi(snddate);
19 fclose(sndstat);
20-
21+ } else {
22+ voxdate = 0; /* kernel 2.4 doesn't have sndstat */
23+ }
24 voices = malloc(sinfo[seq_dev].nr_voices * sizeof(struct synth_voice));
25 for (x = 0; x < sinfo[seq_dev].nr_voices; x++)
26 {
This page took 0.029207 seconds and 4 git commands to generate.