mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-06-11 09:40:11 -04:00
add generic header
This commit is contained in:
parent
97a795adc3
commit
b031d1c1bd
2 changed files with 41 additions and 0 deletions
24
include/ac/alloca.h
Normal file
24
include/ac/alloca.h
Normal file
|
|
@ -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 */
|
||||
17
include/ac/wait.h
Normal file
17
include/ac/wait.h
Normal file
|
|
@ -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 */
|
||||
Loading…
Reference in a new issue