fix machine-dependant #if's
This commit is contained in:
parent
620f7e3d49
commit
4fd7747338
3 changed files with 3 additions and 11 deletions
|
@ -82,9 +82,7 @@ catch(trapno)
|
||||||
*p = 0;
|
*p = 0;
|
||||||
_Traps__Message(q, 0, (int) (p - q), 1);
|
_Traps__Message(q, 0, (int) (p - q), 1);
|
||||||
}
|
}
|
||||||
#ifndef em24
|
#if !defined(__em24) && !defined(__em44) && !defined(__em22)
|
||||||
#ifndef em44
|
|
||||||
#ifndef em22
|
|
||||||
if (trapno == M2_UNIXSIG) {
|
if (trapno == M2_UNIXSIG) {
|
||||||
extern int __signo;
|
extern int __signo;
|
||||||
signal(__signo, SIG_DFL);
|
signal(__signo, SIG_DFL);
|
||||||
|
@ -92,8 +90,6 @@ catch(trapno)
|
||||||
kill(getpid(), __signo);
|
kill(getpid(), __signo);
|
||||||
_exit(trapno);
|
_exit(trapno);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
if (trapno != M2_FORCH) {
|
if (trapno != M2_FORCH) {
|
||||||
_cleanup();
|
_cleanup();
|
||||||
|
|
|
@ -31,7 +31,7 @@ init()
|
||||||
sigtrp(M2_UNIXSIG, SIGALRM);
|
sigtrp(M2_UNIXSIG, SIGALRM);
|
||||||
sigtrp(M2_UNIXSIG, SIGTERM);
|
sigtrp(M2_UNIXSIG, SIGTERM);
|
||||||
}
|
}
|
||||||
#if em22 || em24 || em44
|
#if defined(__em22) || defined(__em24) || defined(__em44)
|
||||||
killbss()
|
killbss()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
Version: $Header$
|
Version: $Header$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef em22
|
#if !defined(__em22) && !defined(__em24) && !defined(__em44)
|
||||||
#ifndef em24
|
|
||||||
#ifndef em44
|
|
||||||
|
|
||||||
#define EM_trap(n) TRP(n) /* define to whatever is needed to cause the trap */
|
#define EM_trap(n) TRP(n) /* define to whatever is needed to cause the trap */
|
||||||
|
|
||||||
|
@ -82,5 +80,3 @@ sigtrp(trapno, signo)
|
||||||
return oldtrap;
|
return oldtrap;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue