Commit 23f5d115 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add generic headers

parent 727f6aa1
/* Generic krb.h */
#ifndef _AC_KRB_H
#define _AC_KRB_H
#if defined( HAVE_KERBEROS )
#if defined( HAVE_KERBEROSIV_KRB_H )
#include <kerberosIV/krb.h>
#elif defined( HAVE_KRB_H )
#include <krb.h>
#endif
#if defined( HAVE_KERBEROSIV_DES_H )
#include <kerberosIV/des.h>
#elif defined( HAVE_DES_H )
#include <des.h>
#endif
#endif /* HAVE_KERBEROS */
#endif /* _AC_KRB_H */
/*
* Generic syslog.h
*/
#ifndef _AC_SYSLOG_H_
#define _AC_SYSLOG_H_
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#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_ */
/* Generic termios.h */
#ifndef _AC_TERMIOS_H
#define _AC_TERMIOS_H
#ifdef HAVE_SGTTY_H
#include <sgtty.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#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 <termios.h>
#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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment