mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-23 11:24:19 +02:00
d33113536a
This fixes build issues with musl in qemu.
27 lines
695 B
Diff
27 lines
695 B
Diff
From 2cea39d1a37c87e65e3bc8892f9d3d37e426b9e7 Mon Sep 17 00:00:00 2001
|
|
From: Michael Forney <mforney@mforney.org>
|
|
Date: Tue, 23 Jun 2020 14:34:45 -0700
|
|
Subject: [PATCH] Only include linux/sysinfo.h from linux/kernel.h on glibc
|
|
|
|
---
|
|
include/uapi/linux/kernel.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/include/uapi/linux/kernel.h b/include/uapi/linux/kernel.h
|
|
index 0ff8f7477847..b2d59deef093 100644
|
|
--- a/include/uapi/linux/kernel.h
|
|
+++ b/include/uapi/linux/kernel.h
|
|
@@ -2,7 +2,9 @@
|
|
#ifndef _UAPI_LINUX_KERNEL_H
|
|
#define _UAPI_LINUX_KERNEL_H
|
|
|
|
+#ifdef __GLIBC__
|
|
#include <linux/sysinfo.h>
|
|
+#endif
|
|
|
|
/*
|
|
* 'kernel.h' contains some often-used function prototypes etc
|
|
--
|
|
2.27.0
|
|
|