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
df350133f2

As a result, this patch is still needed with uclibc-ng < 1.0.28

Signed-off-by: Khem Raj <raj.khem@gmail.com>
[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 <fontaine.fabrice@gmail.com>
This commit is contained in:
Khem Raj
2020-11-24 20:21:54 +01:00
committed by Fabrice Fontaine
parent bd73d534d0
commit 17b09387ee

View File

@ -18,6 +18,10 @@
#include <glib.h>
#ifndef NT_GNU_BUILD_ID
#define NT_GNU_BUILD_ID 3
#endif
typedef struct ElfSym ElfSym;
typedef struct ElfParser ElfParser;