replace warnings for sig_t detection
This commit is contained in:
parent
8256f266ff
commit
6aa08008b3
19
Build.sh
19
Build.sh
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.637 2013/06/02 03:09:11 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.638 2013/06/03 22:27:15 tg Exp $'
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
# 2011, 2012, 2013
|
# 2011, 2012, 2013
|
||||||
|
@ -1500,18 +1500,16 @@ ac_testn sig_t <<-'EOF'
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
volatile sig_t foo = (sig_t)0;
|
||||||
volatile sig_t foo = NULL;
|
int main(void) { return (foo == (sig_t)0); }
|
||||||
int main(void) { return (foo == NULL); }
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ac_testn sighandler_t '!' sig_t 0 <<-'EOF'
|
ac_testn sighandler_t '!' sig_t 0 <<-'EOF'
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
volatile sighandler_t foo = (sighandler_t)0;
|
||||||
volatile sighandler_t foo = NULL;
|
int main(void) { return (foo == (sighandler_t)0); }
|
||||||
int main(void) { return (foo == NULL); }
|
|
||||||
EOF
|
EOF
|
||||||
if test 1 = $HAVE_SIGHANDLER_T; then
|
if test 1 = $HAVE_SIGHANDLER_T; then
|
||||||
add_cppflags -Dsig_t=sighandler_t
|
add_cppflags -Dsig_t=sighandler_t
|
||||||
|
@ -1522,9 +1520,8 @@ ac_testn __sighandler_t '!' sig_t 0 <<-'EOF'
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
volatile __sighandler_t foo = (__sighandler_t)0;
|
||||||
volatile __sighandler_t foo = NULL;
|
int main(void) { return (foo == (__sighandler_t)0); }
|
||||||
int main(void) { return (foo == NULL); }
|
|
||||||
EOF
|
EOF
|
||||||
if test 1 = $HAVE___SIGHANDLER_T; then
|
if test 1 = $HAVE___SIGHANDLER_T; then
|
||||||
add_cppflags -Dsig_t=__sighandler_t
|
add_cppflags -Dsig_t=__sighandler_t
|
||||||
|
@ -1547,7 +1544,7 @@ else
|
||||||
#define EXTERN
|
#define EXTERN
|
||||||
#define MKSH_INCLUDES_ONLY
|
#define MKSH_INCLUDES_ONLY
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.637 2013/06/02 03:09:11 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.638 2013/06/03 22:27:15 tg Exp $");
|
||||||
int main(void) { printf("Hello, World!\n"); return (0); }
|
int main(void) { printf("Hello, World!\n"); return (0); }
|
||||||
EOF
|
EOF
|
||||||
case $cm in
|
case $cm in
|
||||||
|
|
Loading…
Reference in New Issue