From 2f7691307d6da9fcb885f51cd21811f724139041 Mon Sep 17 00:00:00 2001
From: Doug Ambrisko <ambrisko@FreeBSD.org>
Date: Wed, 8 Dec 2004 18:31:42 +0000
Subject: Fix build error on 4.X and 6.X.  Different problems though.

---
 net/etherboot/files/patch-af | 50 ++++++++++++++++++++++++++++++++++++++++++++
 net/etherboot/pkg-descr      |  2 +-
 2 files changed, 51 insertions(+), 1 deletion(-)
 create mode 100644 net/etherboot/files/patch-af

(limited to 'net/etherboot')

diff --git a/net/etherboot/files/patch-af b/net/etherboot/files/patch-af
new file mode 100644
index 000000000000..b7cb6c3d893f
--- /dev/null
+++ b/net/etherboot/files/patch-af
@@ -0,0 +1,50 @@
+--- ./arch/i386/include/bits/string.h.orig	Sat Dec  4 09:31:24 2004
++++ ./arch/i386/include/bits/string.h	Sat Dec  4 09:33:37 2004
+@@ -65,9 +65,10 @@ __asm__ __volatile__(
+ return dest;
+ }
+ 
++#ifndef __FreeBSD__
+ #define memcmp __builtin_memcmp
+ #define __HAVE_ARCH_MEMCMP
+-
++#endif
+ 
+ #define __HAVE_ARCH_MEMSET
+ static inline void *memset(void *s, int c,size_t count)
+--- drivers/disk/ide_disk.c.orig	Sat Dec  4 09:24:19 2004
++++ drivers/disk/ide_disk.c	Sat Dec  4 15:57:18 2004
+@@ -592,7 +592,8 @@ static int init_drive(struct harddisk_in
+ 			info->sectors_per_track *
+ 			info->heads *
+ 			info->cylinders;
+-		printf(__FUNCTION__ " sectors_per_track=[%d], heads=[%d], cylinders=[%d]\n",
++		printf("%s sectors_per_track=[%d], heads=[%d], cylinders=[%d]\n",
++			__FUNCTION__,
+ 			info->sectors_per_track,
+ 			info->heads,
+ 			info->cylinders);
+--- drivers/net/3c509.c.orig	Sat Dec  4 16:08:56 2004
++++ drivers/net/3c509.c	Sat Dec  4 16:11:59 2004
+@@ -620,9 +620,9 @@ static int t509_probe(struct dev *dev, u
+ 	dev->devid.vendor_id = htons(GENERIC_ISAPNP_VENDOR);
+ 	dev->devid.device_id = htons(0x80f7);
+ 	return 1;
++	}
+ no3c509:
+ 	/* printf("(probe fail)"); */
+-	}
+ 	return 0;
+ }
+ 
+--- util/makerom.pl.orig	Mon Dec  6 08:36:43 2004
++++ util/makerom.pl	Mon Dec  6 08:36:54 2004
+@@ -19,8 +19,6 @@ use strict;
+ 
+ use vars qw(%opts);
+ 
+-use bytes;
+-
+ sub getromsize ($) {
+ 	my ($romref) = @_;
+ 	my $i;
diff --git a/net/etherboot/pkg-descr b/net/etherboot/pkg-descr
index 23f4d81591ec..4192ba412955 100644
--- a/net/etherboot/pkg-descr
+++ b/net/etherboot/pkg-descr
@@ -7,7 +7,7 @@ The defaults used here are suited to boot FreeBSD ELF kernels over NFS.
 
 To produce an etherboot floppy (or HD partition) do
 
-	cd work/etherboot/src 
+	cd work/etherboot-5.2.4/src 
 	cat bin/boot1a.bin bin/<device>.zrom > /dev/fd0
 
 Replace <device> with the specific code for your card, and /dev/fd0
-- 
cgit v1.2.3