# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sun Nov 7 02:39:34 EET 1999 [metaconfig 3.0 PL70]
+# Generated on Sun Nov 7 14:31:41 EET 1999 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.com)
cat >/tmp/c1$$ <<EOF
int main()
{
printf("%d\n", (int)sizeof(double));
- return(0);
+ exit(0);
}
EOCP
set try
#ifndef errno /* XXX need better Configure test */
extern int errno;
#endif
-#ifdef $i_unistd
+#$i_unistd I_UNISTD
+#ifdef I_UNISTD
#include <unistd.h>
#endif
#ifdef $i_string
#include <stdio.h>
int main() {
printf("%d\n", (int)sizeof($fpostype));
- return(0);
+ exit(0);
}
EOCP
set try
struct sigaction act, oact;
act.sa_flags = 0;
oact.sa_handler = 0;
+ /* so that act and oact are used */
+ exit(act.sa_flags == 0 && oact.sa_handler == 0);
}
EOP
set try
case "$alignbytes" in
'') echo "Checking alignment constraints..." >&4
$cat >try.c <<'EOCP'
+#include <stdio.h>
struct foobar {
char foo;
double bar;
#include <stdio.h>
int main() {
printf("%d\n", (int)sizeof($gidtype));
- return(0);
+ exit(0);
}
EOCP
set try
int main()
{
printf("%d\n", (int)sizeof(char));
- return(0);
+ exit(0);
}
EOCP
set try
int main()
{
printf("%d\n", (int)sizeof(VOID_PTR));
- return(0);
+ exit(0);
}
EOCP
set try
}
END {
printf "#endif /* JUST_NSIG */\n";
- printf "}\n";
+ printf "exit(0);\n}\n";
}
' >>signal.c
$cat >signal.awk <<'EOP'
#include <stdio.h>
int main() {
printf("%d\n", (int)sizeof($uidtype));
- return(0);
+ exit(0);
}
EOCP
set try