Add generic headers

This commit is contained in:
Kurt Zeilenga 1998-10-20 23:40:36 +00:00
parent 727f6aa131
commit 23f5d115de
3 changed files with 73 additions and 0 deletions

21
include/ac/krb.h Normal file
View file

@ -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 <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 */

20
include/ac/syslog.h Normal file
View file

@ -0,0 +1,20 @@
/*
* 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_ */

32
include/ac/termios.h Normal file
View file

@ -0,0 +1,32 @@
/* 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 */