freebsd-ports/www/larbin/files/patch-adns_internal.h
2022-01-03 11:37:54 +01:00

31 lines
877 B
C

--- adns/internal.h.orig 2002-01-02 10:44:52 UTC
+++ adns/internal.h
@@ -151,15 +151,17 @@ typedef struct allocnode {
struct allocnode *next, *back;
} allocnode;
-union maxalign {
+typedef union maxalign {
byte d[1];
struct in_addr ia;
long l;
void *p;
void (*fp)(void);
union maxalign *up;
-} data;
+} data_t;
+extern data_t data;
+
typedef struct {
void *ext;
void (*callback)(adns_query parent, adns_query child);
@@ -567,7 +569,7 @@ typedef enum {
} parsedomain_flags;
adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
- vbuf *vb, parsedomain_flags flags,
+ vbuf *vb, adns_queryflags flags,
const byte *dgram, int dglen, int *cbyte_io, int max);
/* vb must already have been initialised; it will be reset if necessary.
* If there is truncation, vb->used will be set to 0; otherwise