• Jörg Krause's avatar
    Fix musl build · 9692a213
    Jörg Krause authored
    Defining _GNU_SOURCE is required to get proper member names in `struct udphdr`
    when building against musl. Build error:
    
      util.c: In function 'RawFillHeaders':
      util.c:481:9: error: 'struct udphdr' has no member named 'source'
           udph->source = htons(portsrc);
               ^
      util.c:482:9: error: 'struct udphdr' has no member named 'dest'
           udph->dest   = htons(portdst);
               ^
      util.c:483:9: error: 'struct udphdr' has no member named 'len'
           udph->len    = htons(sizeof(struct udphdr) + len);
               ^
      util.c:484:9: error: 'struct udphdr' has no member named 'check'
           udph->check  = 0;
    
    Including <sys/types.h> in needed for mode_t, otherwise musl build fails:
      util.h:91:1: error: unknown type name 'mode_t'
    Signed-off-by: 's avatarJörg Krause <joerg.krause@embedded.rocks>
    9692a213
Name
Last commit
Last update
AUTHORS Loading commit data...
COPYING Loading commit data...
Changelog Loading commit data...
INSTALL Loading commit data...
Makefile Loading commit data...
NEWS Loading commit data...
README Loading commit data...
aggregartp.1 Loading commit data...
aggregartp.c Loading commit data...
ingests.1 Loading commit data...
ingests.c Loading commit data...
ingests_debug.c Loading commit data...
lasts.1 Loading commit data...
lasts.c Loading commit data...
multicat.1 Loading commit data...
multicat.c Loading commit data...
multicat_expire.sh Loading commit data...
multicat_validate.c Loading commit data...
offsets.1 Loading commit data...
offsets.c Loading commit data...
reordertp.1 Loading commit data...
reordertp.c Loading commit data...
util.c Loading commit data...
util.h Loading commit data...