compile under sun's cc.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@165 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
10
C/sysbits.c
10
C/sysbits.c
@@ -367,7 +367,7 @@ void cputime_interval(Int *now,Int *interval)
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__sun__) && defined(__svr4__)
|
||||
#if defined(__sun__) && (defined(__svr4__) || defined(__SVR4))
|
||||
|
||||
#if HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
@@ -812,7 +812,7 @@ p_srandom (void)
|
||||
STATIC_PROTO (void InitSignals, (void));
|
||||
|
||||
|
||||
#if defined(__svr4__)
|
||||
#if (defined(__svr4__) || defined(__SVR4))
|
||||
|
||||
#if HAVE_SIGINFO_H
|
||||
#include <siginfo.h>
|
||||
@@ -1200,7 +1200,7 @@ ProcessSIGINT(void)
|
||||
that might be
|
||||
*/
|
||||
static RETSIGTYPE
|
||||
#if defined(__svr4__)
|
||||
#if (defined(__svr4__) || defined(__SVR4))
|
||||
HandleSIGINT (int sig, siginfo_t *x, ucontext_t *y)
|
||||
#else
|
||||
HandleSIGINT (int sig)
|
||||
@@ -1238,7 +1238,7 @@ HandleSIGINT (int sig)
|
||||
#if !defined(_WIN32)
|
||||
/* this routine is called if the system activated the alarm */
|
||||
static RETSIGTYPE
|
||||
#if defined(__svr4__)
|
||||
#if (defined(__svr4__) || defined(__SVR4))
|
||||
HandleALRM (int s, siginfo_t *x, ucontext_t *y)
|
||||
#else
|
||||
HandleALRM(int s)
|
||||
@@ -1259,7 +1259,7 @@ HandleALRM(int s)
|
||||
|
||||
#if !defined(LIGHT) && !_MSC_VER && !defined(__MINGW32__) && !defined(LIGHT)
|
||||
static RETSIGTYPE
|
||||
#if defined(__svr4__)
|
||||
#if (defined(__svr4__) || defined(__SVR4))
|
||||
ReceiveSignal (int s, siginfo_t *x, ucontext_t *y)
|
||||
#else
|
||||
ReceiveSignal (int s)
|
||||
|
@@ -47,9 +47,10 @@ rational_tree_loop(CELL *pt0, CELL *pt0_end, CELL **to_visit0)
|
||||
|
||||
loop:
|
||||
while (pt0 < pt0_end) {
|
||||
register CELL *ptd0 = ++pt0;
|
||||
register CELL *ptd0;
|
||||
register CELL d0;
|
||||
|
||||
ptd0 = ++pt0;
|
||||
pt0 = ptd0;
|
||||
d0 = *ptd0;
|
||||
deref_head(d0, rtree_loop_unk);
|
||||
@@ -139,11 +140,13 @@ OCUnify_complex(register CELL *pt0, register CELL *pt0_end,
|
||||
)
|
||||
{
|
||||
|
||||
register CELL **to_visit = (CELL **) H;
|
||||
register CELL **to_visit;
|
||||
#if SHADOW_HB
|
||||
register CELL *HBREG = HB;
|
||||
register CELL *HBREG;
|
||||
HBREG = HB;
|
||||
#endif
|
||||
|
||||
to_visit = (CELL **) H;
|
||||
loop:
|
||||
while (pt0 < pt0_end) {
|
||||
register CELL *ptd0 = ++pt0;
|
||||
|
Reference in New Issue
Block a user