version 1.1, 2025/01/19 02:04:04
|
version 1.2, 2025/03/08 06:11:05
|
Line 39
|
Line 39
|
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#if defined(__linux__) | defined(__FreeBSD__) |
#if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__) |
# include <syslog.h> |
# include <syslog.h> |
#endif |
#endif |
#include <stdlib.h> |
#include <stdlib.h> |
Line 49
|
Line 49
|
void m_log (int level, const char *msg) |
void m_log (int level, const char *msg) |
{ |
{ |
|
|
#if defined(__linux__) | defined(__FreeBSD__) |
#if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__) |
syslog (level, "%s", msg); |
syslog (level, "%s", msg); |
#endif |
#endif |
|
|