$NetBSD: patch-aj,v 1.2 2007/10/02 20:23:08 heinz Exp $

--- tftpsubs.c.orig	1994-10-05 06:20:49.000000000 +0100
+++ tftpsubs.c
@@ -38,12 +38,15 @@ static char sccsid[] = "@(#)tftpsubs.c	5
 #include <netinet/in.h>
 #include <arpa/tftp.h>
 #include <stdio.h>
+#ifdef __sun
+#include <sys/filio.h>
+#endif
 
-#define PKTSIZE SEGSIZE+4       /* should be moved to tftp.h */
+#define BUF_PKTSIZE SEGSIZE+4       /* should be moved to tftp.h */
 
 struct bf {
 	int counter;            /* size of data in buffer, or flag */
-	char buf[PKTSIZE];      /* room for data packet */
+	char buf[BUF_PKTSIZE];      /* room for data packet */
 } bfs[2];
 
 				/* Values for bf.counter  */
@@ -233,7 +236,7 @@ synchnet(f)
 int	f;		/* socket to flush */
 {
 	int i, j = 0;
-	char rbuf[PKTSIZE];
+	char rbuf[BUF_PKTSIZE];
 	struct sockaddr_in from;
 	int fromlen;
 
