[sysprof: 1/2] src/libsysprof/elfparser.h: define NT_GNU_BUILD_ID




commit 17b09387ee17686308d253bd5a6d0a2b6770f52b
Author: Khem Raj <raj khem gmail com>
Date:   Tue Nov 24 20:21:54 2020 +0100

    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 <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>

 src/libsysprof/elfparser.h | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libsysprof/elfparser.h b/src/libsysprof/elfparser.h
index 160e4c9..94fa5c0 100644
--- a/src/libsysprof/elfparser.h
+++ b/src/libsysprof/elfparser.h
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]