[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fixes for emacs on SPARC BSDi 4.2
From: |
Mark W. Snitily |
Subject: |
Re: fixes for emacs on SPARC BSDi 4.2 |
Date: |
Sat, 23 Jun 2001 16:43:43 -0700 |
Should have added that in the top level emacs-20.7 directory, it was configured
via:
./configure sparc-unknown-bsdi4.2
"Mark W. Snitily" wrote:
>
> Paul,
>
> One of the things I did this past week was to get emacs 20.7 up and running
> on SPARC BSDi 4.2. Decided I had better comment the fixes (actually they are
> just workarounds, not "real" fixes) and email them to you before I forget.
> Am also cc'ing them to bug-gnu-emacs@gnu.org.
>
> -- Mark
>
> *** src/s/bsd386.h.org Wed May 7 15:20:37 1997
> --- src/s/bsd386.h Sat Jun 23 19:08:34 2001
> ***************
> *** 11,18 ****
> --- 11,25 ----
> #define SIGNALS_VIA_CHARACTERS
>
> #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
> +
> + #if 0
> + /* This is a workaround on SPARC BSDi 4.2. These two #define's cause a
> + * conflict with m/sparc.h. I'm sure must be a better way than just
> + * #ifdef'ing them out. MWS 23-June-2001
> + */
> #define A_TEXT_OFFSET(x) (sizeof (struct exec))
> #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
> + #endif
>
> #define LIBS_DEBUG
> #define LIB_X11_LIB -L/usr/X11/lib -lX11
> *** src/process.c.org Tue May 23 15:10:16 2000
> --- src/process.c Sat Jun 23 19:00:01 2001
> ***************
> *** 2479,2487 ****
> FD_ZERO (&Available);
> }
> else
> ! nfds = select (max (max_process_desc, max_keyboard_desc) + 1,
> ! &Available, (SELECT_TYPE *)0, (SELECT_TYPE *)0,
> ! &timeout);
>
> xerrno = errno;
>
> --- 2479,2501 ----
> FD_ZERO (&Available);
> }
> else
> ! {
> ! /* This is a workaround on SPARC BSDi 4.2. For some reason the
> ! * microseconds for the timeout value were being set to a
> ! * negative value causing select() to return an "invalid argument"
> ! * error message.
> ! *
> ! * The correct fix is to figure out why it's being set to a negative
> ! * value. Setting it to zero here is just a workaround (i.e. hack)
> ! * that allows emacs to be "usable" on SPARC BSDi 4.2.
> ! * MWS 23-June-2001
> ! */
> ! if (timeout.tv_usec < 0) timeout.tv_usec = 0;
> !
> ! nfds = select (max (max_process_desc, max_keyboard_desc) + 1,
> ! &Available, (SELECT_TYPE *)0, (SELECT_TYPE *)0,
> ! &timeout);
> ! }
>
> xerrno = errno;