]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
add generic header
authorKurt Zeilenga <kurt@openldap.org>
Fri, 14 Aug 1998 18:39:02 +0000 (18:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 14 Aug 1998 18:39:02 +0000 (18:39 +0000)
include/ac/alloca.h [new file with mode: 0644]
include/ac/wait.h [new file with mode: 0644]

diff --git a/include/ac/alloca.h b/include/ac/alloca.h
new file mode 100644 (file)
index 0000000..80bcd44
--- /dev/null
@@ -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 <alloca.h>
+# 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 (file)
index 0000000..ab69a88
--- /dev/null
@@ -0,0 +1,17 @@
+/* Generic wait.h */
+
+#ifndef _AC_WAIT_H
+#define _AC_WAIT_H
+
+#include <sys/types.h>
+#if HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#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 */