+2001-11-05 Andreas Schwab <schwab@suse.de>
+
+ * sound.c (sound_perror): Save errno from being clobbered.
+
2001-11-05 Dale Hagglund <rdh@yottayotta.com>
* unexelf.c (unexec): Don't use `mmap'. Instead, read and write
sound_perror (msg)
char *msg;
{
+ int saved_errno = errno;
+
turn_on_atimers (1);
#ifdef SIGIO
sigunblock (sigmask (SIGIO));
#endif
- if (errno != 0)
- error ("%s: %s", msg, strerror (errno));
+ if (saved_errno != 0)
+ error ("%s: %s", msg, strerror (saved_errno));
else
error ("%s", msg);
}