xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 259b420444c52463795b4b582a2ab7511149eea7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 16 Oct 2017 21:26:40 -0700
4Subject: [PATCH] sgidef.h does not exist on musl and its not needed to compile
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7Upstream-Status: Pending
8
9---
10 src/base/linux_syscall_support.h | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13--- a/src/base/linux_syscall_support.h
14+++ b/src/base/linux_syscall_support.h
15@@ -164,7 +164,7 @@ extern "C" {
16 #include <endian.h>
17 #include <fcntl.h>
18
19-#ifdef __mips__
20+#if defined(__mips__) && defined(__glibc__)
21 /* Include definitions of the ABI currently in use.                          */
22 #include <sgidefs.h>
23 #endif
24