Fix to prevent build bustage on nebiros with Sun compilers.

The Sun compiler expects a specific format for the function
used by the #pragma statement. It should return void and
have no arguments. It also needs an initial function prototype.
r=cls
Fix for breakage for checkin for bug #40769.
This commit is contained in:
rich.burridge%sun.com 2000-06-27 05:58:00 +00:00
parent ccf3a3a8ca
commit 049a2966bf
2 changed files with 6 additions and 4 deletions

View File

@ -1120,9 +1120,11 @@ struct mybuf {
};
static void myinit();
#pragma init (myinit)
static int
static void
myinit()
{
@ -1143,7 +1145,6 @@ myinit()
#endif /*__GNUC__*/
}
initialized = 1;
return(1);
}

View File

@ -1120,9 +1120,11 @@ struct mybuf {
};
static void myinit();
#pragma init (myinit)
static int
static void
myinit()
{
@ -1143,7 +1145,6 @@ myinit()
#endif /*__GNUC__*/
}
initialized = 1;
return(1);
}