4744ffd1dd
it keeps spewing: error: Expected ) in function declarator error: got , or: error: got "GCC visibility push(default)" if we tolerate more warnings and errors, it can be filtered out later on. one patch from pkgsrc itself. describe patch for not dying on missing includes
27 lines
608 B
C
27 lines
608 B
C
$NetBSD$
|
|
|
|
--- dissect.h.orig 2014-02-16 22:44:57.000000000 +0000
|
|
+++ dissect.h
|
|
@@ -27,13 +27,16 @@ struct reporter
|
|
extern void dissect(struct symbol_list *, struct reporter *);
|
|
|
|
#define MK_IDENT(s) ({ \
|
|
- static struct { \
|
|
+ static union { \
|
|
struct ident ident; \
|
|
- char __[sizeof(s)]; \
|
|
- } ident = {{ \
|
|
- .len = sizeof(s)-1, \
|
|
- .name = s, \
|
|
- }}; \
|
|
+ struct { \
|
|
+ char id[sizeof(struct ident)]; \
|
|
+ char name[sizeof(s)]; \
|
|
+ } named; \
|
|
+ } ident = { \
|
|
+ .ident.len = sizeof(s)-1, \
|
|
+ .named.name = s, \
|
|
+ }; \
|
|
&ident.ident; \
|
|
})
|
|
|