mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
46 lines
1.2 KiB
Diff
46 lines
1.2 KiB
Diff
Patch-Source: https://github.com/chimera-linux/cports/blob/7612be71d3df4f9f526ca6f4be6b33b0e3bdb708/main/libxo/patches/portability.patch
|
|
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>
|
|
+#ifdef HAVE_SYSCTLBYNAME
|
|
#include <sys/sysctl.h>
|
|
+#endif
|
|
|
|
#include "xo_config.h"
|
|
#include "xo.h"
|