From 17b09387ee17686308d253bd5a6d0a2b6770f52b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 24 Nov 2020 20:21:54 +0100 Subject: [PATCH] src/libsysprof/elfparser.h: define NT_GNU_BUILD_ID 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 It should be noted that uclibc-ng defines NT_GNU_BUILD_ID since its version 1.0.28 and https://github.com/wbx-github/uclibc-ng/commit/df350133f24e6202c4eaf57a1941aa2836f258ae As a result, this patch is still needed with uclibc-ng < 1.0.28 Signed-off-by: Khem Raj [Retrieved (and slightly updated) from: https://git.buildroot.net/buildroot/tree/package/sysprof/0001-define-NT_GNU_BUILD_ID.patch] Signed-off-by: Fabrice Fontaine --- src/libsysprof/elfparser.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsysprof/elfparser.h b/src/libsysprof/elfparser.h index 160e4c9d..94fa5c02 100644 --- a/src/libsysprof/elfparser.h +++ b/src/libsysprof/elfparser.h @@ -18,6 +18,10 @@ #include +#ifndef NT_GNU_BUILD_ID +#define NT_GNU_BUILD_ID 3 +#endif + typedef struct ElfSym ElfSym; typedef struct ElfParser ElfParser;