generic-poky/meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch
Khem Raj 1ad8852892 sysprof: Define NT_GNU_BUILD_ID if undefined
This is needed on uclibc which does not have all GNU extentions

(From OE-Core rev: 22fdaba9813beb276caf2b6194fccc4cccf138c4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-20 15:27:39 +01:00

23 lines
584 B
Diff

On uclibc elf.h does not have GNU extentions but we need this define
so we define it locally if its not getting it from elf.h
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending
Index: git/elfparser.h
===================================================================
--- git.orig/elfparser.h 2011-07-16 18:57:41.000000000 -0700
+++ git/elfparser.h 2011-07-16 20:28:54.733829895 -0700
@@ -17,6 +17,10 @@
*/
#include <glib.h>
+#ifndef NT_GNU_BUILD_ID
+#define NT_GNU_BUILD_ID 3
+#endif
+
typedef struct ElfSym ElfSym;
typedef struct ElfParser ElfParser;