From: Kurt Zeilenga Date: Fri, 14 Aug 1998 18:39:02 +0000 (+0000) Subject: add generic header X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b031d1c1bd5ea5266e900ca6ef5ed475b5f09c06;p=thirdparty%2Fopenldap.git add generic header --- 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 */