Merge pull request #10 from kraj/master

Fix build on non-glibc linux systems
This commit is contained in:
Joachim Nilsson 2019-12-07 20:09:07 +01:00 committed by GitHub
commit a3f3ed1833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -34,6 +34,7 @@
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
/*
* The following macro is used to remove const cast-away warnings

View File

@ -221,7 +221,9 @@ struct syslog_data {
.log_mask = 0xff, \
}
__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif
void openlog (const char *, int, int);
void closelog (void);
@ -245,7 +247,9 @@ void syslogp_r (int, struct syslog_data *, const char *, const char *,
const char *, ...);
void vsyslogp_r (int, struct syslog_data *, const char *, const char *,
const char *, va_list);
__END_DECLS
#ifdef __cplusplus
}
#endif
#else /* !__KERNEL__ */