46 lines
1023 B
Diff
46 lines
1023 B
Diff
From 32bb8f7baa9892ad98587836d591186b6213ebee Mon Sep 17 00:00:00 2001
|
|
From: Daniel Kolesa <daniel@octaforge.org>
|
|
Date: Sun, 27 Jun 2021 20:14:01 +0200
|
|
Subject: [PATCH] portability fixes
|
|
|
|
---
|
|
libxo/xo_humanize.h | 2 --
|
|
libxo/xo_syslog.c | 3 ++-
|
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/libxo/xo_humanize.h b/libxo/xo_humanize.h
|
|
index edf85b8..ca41b86 100644
|
|
--- a/libxo/xo_humanize.h
|
|
+++ b/libxo/xo_humanize.h
|
|
@@ -37,8 +37,6 @@
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
-#include <sys/cdefs.h>
|
|
-
|
|
#include <sys/types.h>
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
diff --git a/libxo/xo_syslog.c b/libxo/xo_syslog.c
|
|
index 62da181..d1171e1 100644
|
|
--- a/libxo/xo_syslog.c
|
|
+++ b/libxo/xo_syslog.c
|
|
@@ -38,7 +38,6 @@
|
|
* SUCH DAMAGE.
|
|
*/
|
|
|
|
-#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/syslog.h>
|
|
@@ -58,7 +57,9 @@
|
|
#include <stdarg.h>
|
|
#include <sys/time.h>
|
|
#include <sys/types.h>
|
|
+#if 0
|
|
#include <sys/sysctl.h>
|
|
+#endif
|
|
|
|
#include "xo_config.h"
|
|
#include "xo.h"
|