F42: fix for etext symbol glibc 2.29+
The man page end(3) changed as well over time to support the new definition. This was revised from 2.41+ to 2.29+ as it seems top relate to a mix of Kernel / Glibc / Compiler and the new defintion probably works on any older system.
This commit is contained in:
parent
3fd0798312
commit
d7935930ad
|
|
@ -22,6 +22,7 @@
|
|||
static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/utils/netlist.c,v 1.1.1.1 2008/02/03 20:43:50 tim Exp $";
|
||||
#endif /* lint */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "utils/magic.h"
|
||||
|
|
@ -369,6 +370,8 @@ NLNetName(net)
|
|||
static char tempId[100];
|
||||
#if defined(EMSCRIPTEN)
|
||||
int etext;
|
||||
#elif defined(linux) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 29)
|
||||
extern char etext;
|
||||
#elif defined(linux) && defined(__clang__)
|
||||
extern char etext;
|
||||
#elif defined(linux) || defined(CYGWIN)
|
||||
|
|
|
|||
Loading…
Reference in New Issue