|
|
| version 1.1.1.1, 2025/01/19 02:04:04 | version 1.3, 2025/03/09 15:20:18 |
|---|---|
| Line 15 | Line 15 |
| * freem error logging | * freem error logging |
| * | * |
| * | * |
| * Author: Serena Willis <jpw@coherent-logic.com> | * Author: Serena Willis <snw@coherent-logic.com> |
| * Copyright (C) 1998 MUG Deutschland | * Copyright (C) 1998 MUG Deutschland |
| * Copyright (C) 2020 Coherent Logic Development LLC | * Copyright (C) 2020 Coherent Logic Development LLC |
| * | * |
| 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 |