mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
Moved windows-specific syslog to windows.h (now macro)
This commit is contained in:
parent
fe97f291cf
commit
1035840335
2 changed files with 13 additions and 17 deletions
|
@ -133,23 +133,6 @@ sigint(int sig)
|
||||||
server_stop();
|
server_stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WINDOWS32
|
|
||||||
#define LOG_EMERG 0
|
|
||||||
#define LOG_ALERT 1
|
|
||||||
#define LOG_CRIT 2
|
|
||||||
#define LOG_ERR 3
|
|
||||||
#define LOG_WARNING 4
|
|
||||||
#define LOG_NOTICE 5
|
|
||||||
#define LOG_INFO 6
|
|
||||||
#define LOG_DEBUG 7
|
|
||||||
static void
|
|
||||||
syslog(int a, const char *str, ...)
|
|
||||||
{
|
|
||||||
/* TODO: implement (add to event log), move to common.c */
|
|
||||||
;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_usage() {
|
print_usage() {
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
|
@ -93,6 +93,19 @@ struct ip
|
||||||
struct in_addr ip_src, ip_dst; /* source and dest address */
|
struct in_addr ip_src, ip_dst; /* source and dest address */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef WINDOWS32
|
||||||
|
#define LOG_EMERG 0
|
||||||
|
#define LOG_ALERT 1
|
||||||
|
#define LOG_CRIT 2
|
||||||
|
#define LOG_ERR 3
|
||||||
|
#define LOG_WARNING 4
|
||||||
|
#define LOG_NOTICE 5
|
||||||
|
#define LOG_INFO 6
|
||||||
|
#define LOG_DEBUG 7
|
||||||
|
/* dummy syslog definition to prevent compile errors */
|
||||||
|
#define syslog(...) /* TODO: implement (add to event log), move to common.c */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* windows gettimeofday from https://gist.github.com/ugovaretto/5875385 */
|
/* windows gettimeofday from https://gist.github.com/ugovaretto/5875385 */
|
||||||
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
|
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
|
||||||
#define DELTA_EPOCH_IN_MICROSECS 116444736000000000Ui64
|
#define DELTA_EPOCH_IN_MICROSECS 116444736000000000Ui64
|
||||||
|
|
Loading…
Add table
Reference in a new issue