From: Kurt Zeilenga Date: Tue, 20 Oct 1998 23:40:36 +0000 (+0000) Subject: Add generic headers X-Git-Tag: PHP3_TOOL_0_0~18^2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23f5d115de92232e0b69e3df5dc4b4227a250b2a;p=openldap Add generic headers --- diff --git a/include/ac/krb.h b/include/ac/krb.h new file mode 100644 index 0000000000..d371350354 --- /dev/null +++ b/include/ac/krb.h @@ -0,0 +1,21 @@ +/* Generic krb.h */ + +#ifndef _AC_KRB_H +#define _AC_KRB_H + +#if defined( HAVE_KERBEROS ) + +#if defined( HAVE_KERBEROSIV_KRB_H ) +#include +#elif defined( HAVE_KRB_H ) +#include +#endif + +#if defined( HAVE_KERBEROSIV_DES_H ) +#include +#elif defined( HAVE_DES_H ) +#include +#endif + +#endif /* HAVE_KERBEROS */ +#endif /* _AC_KRB_H */ diff --git a/include/ac/syslog.h b/include/ac/syslog.h new file mode 100644 index 0000000000..76f8b35828 --- /dev/null +++ b/include/ac/syslog.h @@ -0,0 +1,20 @@ +/* + * Generic syslog.h + */ +#ifndef _AC_SYSLOG_H_ +#define _AC_SYSLOG_H_ + +#ifdef HAVE_SYSLOG_H +#include + +#if defined( LOG_NDELAY ) +# define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY ) +#elif defined( LOG_NOWAIT ) +# define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT ) +#else +# define OPENLOG_OPTIONS ( LOG_PID ) +#endif + +#endif /* syslog.h */ + +#endif /* _AC_SYSLOG_H_ */ diff --git a/include/ac/termios.h b/include/ac/termios.h new file mode 100644 index 0000000000..f1d2118a1d --- /dev/null +++ b/include/ac/termios.h @@ -0,0 +1,32 @@ +/* Generic termios.h */ + +#ifndef _AC_TERMIOS_H +#define _AC_TERMIOS_H + +#ifdef HAVE_SGTTY_H +#include + +#ifdef HAVE_SYS_IOCTL_H +#include +#endif + +#define TERMIO_TYPE struct sgttyb +#define TERMFLAG_TYPE int +#define GETATTR( fd, tiop ) ioctl((fd), TIOCGETP, (caddr_t)(tiop)) +#define SETATTR( fd, tiop ) ioctl((fd), TIOCSETP, (caddr_t)(tiop)) +#define GETFLAGS( tio ) ((tio).sg_flags) +#define SETFLAGS( tio, flags ) ((tio).sg_flags = (flags)) + +#elif HAVE_TERMIOS_H +#include + +#define TERMIO_TYPE struct termios +#define TERMFLAG_TYPE tcflag_t +#define GETATTR( fd, tiop ) tcgetattr((fd), (tiop)) +#define SETATTR( fd, tiop ) tcsetattr((fd), TCSANOW /* 0 */, (tiop)) +#define GETFLAGS( tio ) ((tio).c_lflag) +#define SETFLAGS( tio, flags ) ((tio).c_lflag = (flags)) + +#endif /* HAVE_TERMIOS_H */ + +#endif /* _AC_TERMIOS_H */