All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@lists.sourceforge.net, Jaroslav Kysela <perex@suse.cz>
Subject: Re: 1.0.5rc1 release
Date: Tue, 25 May 2004 14:57:40 +0200	[thread overview]
Message-ID: <s5haczwwtob.wl@alsa2.suse.de> (raw)
In-Reply-To: <s5hbrkcwuf8.wl@alsa2.suse.de>

[-- Attachment #1: Type: text/plain, Size: 766 bytes --]

At Tue, 25 May 2004 14:41:31 +0200,
I wrote:
> 
> At Tue, 25 May 2004 14:26:33 +0200 (METDST),
> Clemens Ladisch wrote:
> > 
> > > Please, report (especially compilation) problems.
> > 
> > depmod: *** Unresolved symbols in
> > /lib/modules/2.4.26/kernel/sound/isa/wavefront/snd-wavefront.o
> > depmod:         errno
> > 
> > The open/close/read system calls are implemented as inline functions
> > which change errno which isn't exported from the kernel.
> > 
> > We could reintroduce the dummy definition of errno for older kernels,
> > or use filp_* calls (like sound_firmware.c).
> 
> i guess sys_* functions are also not defined correctly on older
> kernels.  they were open(), close(), read() with __KERNEL_SYSCALLS__.

does the attached patch work?


Takashi

[-- Attachment #2: Type: text/plain, Size: 691 bytes --]

Index: alsa-driver/isa/wavefront/wavefront_synth.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/isa/wavefront/wavefront_synth.c,v
retrieving revision 1.3
diff -u -r1.3 wavefront_synth.c
--- alsa-driver/isa/wavefront/wavefront_synth.c	24 Apr 2004 19:54:17 -0000	1.3
+++ alsa-driver/isa/wavefront/wavefront_synth.c	25 May 2004 12:55:43 -0000
@@ -5,6 +5,11 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,5)
 #define __KERNEL_SYSCALLS__
+#include <linux/unistd.h>
+#define sys_open open
+#define sys_close close
+#define sys_read read
+static int errno;
 #endif
 
 #include "../../alsa-kernel/isa/wavefront/wavefront_synth.c"

  reply	other threads:[~2004-05-25 12:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 12:26 1.0.5rc1 release Clemens Ladisch
2004-05-25 12:41 ` Takashi Iwai
2004-05-25 12:57   ` Takashi Iwai [this message]
2004-05-25 13:31     ` Clemens Ladisch
2004-05-25 18:09       ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2004-05-24 19:49 Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5haczwwtob.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.