From b031d1c1bd5ea5266e900ca6ef5ed475b5f09c06 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 14 Aug 1998 18:39:02 +0000 Subject: [PATCH] add generic header --- include/ac/alloca.h | 24 ++++++++++++++++++++++++ include/ac/wait.h | 17 +++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 include/ac/alloca.h create mode 100644 include/ac/wait.h diff --git a/include/ac/alloca.h b/include/ac/alloca.h new file mode 100644 index 0000000000..80bcd44fee --- /dev/null +++ b/include/ac/alloca.h @@ -0,0 +1,24 @@ +/* Generic alloca.h */ + +#ifndef _AC_ALLOCA_H +#define _AC_ALLOCA_H + +/* AIX requires this to be the first thing in the file. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX +#pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif + + +#endif /* _AC_ALLOCA_H */ diff --git a/include/ac/wait.h b/include/ac/wait.h new file mode 100644 index 0000000000..ab69a883a7 --- /dev/null +++ b/include/ac/wait.h @@ -0,0 +1,17 @@ +/* Generic wait.h */ + +#ifndef _AC_WAIT_H +#define _AC_WAIT_H + +#include +#if HAVE_SYS_WAIT_H +# include +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +#endif +#ifndef WIFEXITED +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +#endif + +#endif /* _AC_WAIT_H */ -- 2.39.5