pkgsrc/ham/tfkiss/patches/patch-aa
2005-12-30 23:06:43 +00:00

22 lines
721 B
Text

$NetBSD: patch-aa,v 1.1 2005/12/30 23:06:43 joerg Exp $
--- src/main.c.orig 2005-12-30 22:55:13.000000000 +0000
+++ src/main.c
@@ -1168,7 +1168,7 @@ int main(int argc,char *argv[])
#ifdef USE_AXIP
int n, hdr_len;
unsigned char buf[MAX_FRAME];
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
struct ip *ipptr;
#else
struct iphdr *ipptr;
@@ -1411,7 +1411,7 @@ int main(int argc,char *argv[])
fromlen = sizeof from;
n = recvfrom(sock,buf,MAX_FRAME,0,
(struct sockaddr *)&from,&fromlen);
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
ipptr = (struct ip *)buf;
hdr_len = 4 * ipptr->ip_hl;
#else