From: Chris Hanson Date: Wed, 15 Dec 2004 02:34:46 +0000 (+0000) Subject: Add support for cygwin. X-Git-Tag: 20090517-FFI~1411 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=25e5802f8400532ad1c3939fc305dca027ce1150;p=mit-scheme.git Add support for cygwin. --- diff --git a/v7/src/microcode/uxtrap.h b/v7/src/microcode/uxtrap.h index 9fae6ed62..89b569810 100644 --- a/v7/src/microcode/uxtrap.h +++ b/v7/src/microcode/uxtrap.h @@ -1,8 +1,9 @@ /* -*-C-*- -$Id: uxtrap.h,v 1.32 2003/02/14 18:28:24 cph Exp $ +$Id: uxtrap.h,v 1.33 2004/12/15 02:34:46 cph Exp $ -Copyright (c) 1990-2001 Massachusetts Institute of Technology +Copyright 1990,1991,1992,1993,1996,1998 Massachusetts Institute of Technology +Copyright 2000,2001,2004 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -651,21 +652,25 @@ struct linux_sigcontext { # define PLAUSIBLE_CC_BLOCK_P(block) 0 #endif -#ifndef _NEXTOS #ifdef _AIX -extern int _etext; -#define get_etext() (&_etext) -#else /* not _AIX */ + extern int _etext; +# define get_etext() (&_etext) +#endif + #ifdef __linux__ -extern unsigned int etext; -#else -extern int etext; + extern unsigned int etext; +# define get_etext() (&etext) #endif -#endif /* _AIX */ + +#ifdef __CYGWIN__ + extern unsigned int end; +# define get_etext() (&end) +#endif + #ifndef get_etext + extern int etext; # define get_etext() (&etext) -#endif /* get_etext */ -#endif /* _NEXTOS */ +#endif /* Machine/OS-independent section */