Add max',
min', and definitions for broken syslogs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@789 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -105,4 +105,31 @@ void mini_inetd (int port);
|
|||||||
#define STDERR_FILENO 2
|
#define STDERR_FILENO 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef max
|
||||||
|
#define max(a,b) (((a)>(b))?(a):(b))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef min
|
||||||
|
#define min(a,b) (((a)<(b))?(a):(b))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
|
/* Misc definitions for old syslogs */
|
||||||
|
|
||||||
|
#ifndef LOG_DAEMON
|
||||||
|
#define openlog(id,option,facility) openlog((id),(option))
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_ODELAY
|
||||||
|
#define LOG_ODELAY 0
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_CONS
|
||||||
|
#define LOG_CONS 0
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_AUTH
|
||||||
|
#define LOG_AUTH 0
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_AUTHPRIV
|
||||||
|
#define LOG_AUTHPRIV LOG_AUTH
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __ROKEN_H__ */
|
#endif /* __ROKEN_H__ */
|
||||||
|
@@ -105,4 +105,31 @@ void mini_inetd (int port);
|
|||||||
#define STDERR_FILENO 2
|
#define STDERR_FILENO 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef max
|
||||||
|
#define max(a,b) (((a)>(b))?(a):(b))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef min
|
||||||
|
#define min(a,b) (((a)<(b))?(a):(b))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
|
/* Misc definitions for old syslogs */
|
||||||
|
|
||||||
|
#ifndef LOG_DAEMON
|
||||||
|
#define openlog(id,option,facility) openlog((id),(option))
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_ODELAY
|
||||||
|
#define LOG_ODELAY 0
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_CONS
|
||||||
|
#define LOG_CONS 0
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_AUTH
|
||||||
|
#define LOG_AUTH 0
|
||||||
|
#endif
|
||||||
|
#ifndef LOG_AUTHPRIV
|
||||||
|
#define LOG_AUTHPRIV LOG_AUTH
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __ROKEN_H__ */
|
#endif /* __ROKEN_H__ */
|
||||||
|
Reference in New Issue
Block a user