Commit fcc3cb5b authored by James Clarke's avatar James Clarke

nlist.h: Re-allow direct use of nlist.n_name

Commit e8d340de ("Remove a.out support from nlist()") introduced a copy of the
definition of nlist from a.out.h. However, as well as having n_name inside
n_un, n_name could also be accessed as a direct member of nlist, and this is
made use of by FreeBSD's usr.bin/netstat/main.c. Thus we should also add the
same enclosing anonymous union.
parent 7cfa2d45
Pipeline #17421 passed with stage
in 58 seconds
...@@ -36,9 +36,12 @@ ...@@ -36,9 +36,12 @@
struct nlist { struct nlist {
union { union {
char *n_name; char *n_name;
struct n_list *n_next; union {
long n_strx; char *n_name;
} n_un; struct n_list *n_next;
long n_strx;
} n_un;
unsigned char n_type; unsigned char n_type;
char n_other; char n_other;
short n_desc; short n_desc;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment