update autoconf for latest compat functions
This commit is contained in:
@@ -29,6 +29,10 @@ uint32_t arc4random_uniform(uint32_t upper_bound);
|
||||
void freezero(void *ptr, size_t sz);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETPROGNAME
|
||||
const char * getprogname(void);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_REALLOCARRAY
|
||||
void *reallocarray(void *, size_t, size_t);
|
||||
#endif
|
||||
|
37
include/compat/syslog.h
Normal file
37
include/compat/syslog.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Public domain
|
||||
* syslog.h compatibility shim
|
||||
*/
|
||||
|
||||
#ifndef _WIN32
|
||||
#include_next <syslog.h>
|
||||
#endif
|
||||
|
||||
#ifndef LIBCRYPTOCOMPAT_SYSLOG_H
|
||||
#define LIBCRYPTOCOMPAT_SYSLOG_H
|
||||
|
||||
#ifndef HAVE_SYSLOG_R
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define LOG_INFO 6 /* informational */
|
||||
#define LOG_USER (1<<3) /* random user-level messages */
|
||||
#define LOG_LOCAL2 (18<<3) /* reserved for local use */
|
||||
#endif
|
||||
|
||||
struct syslog_data {
|
||||
int log_stat;
|
||||
const char *log_tag;
|
||||
int log_fac;
|
||||
int log_mask;
|
||||
};
|
||||
|
||||
#define SYSLOG_DATA_INIT {0, (const char *)0, LOG_USER, 0xff}
|
||||
|
||||
void syslog_r(int, struct syslog_data *, const char *, ...);
|
||||
void vsyslog_r(int, struct syslog_data *, const char *, va_list);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user