libc-rs/ci/sysinfo_guard.patch
2019-11-19 14:17:34 +08:00

11 lines
192 B
Diff

@@ -2,7 +2,9 @@
#ifndef _LINUX_KERNEL_H
#define _LINUX_KERNEL_H
+#ifdef __GLIBC__
#include <linux/sysinfo.h>
+#endif
/*
* 'kernel.h' contains some often-used function prototypes etc