diff options
Diffstat (limited to 'sysutils/dptutil/patches/patch-ae')
-rw-r--r-- | sysutils/dptutil/patches/patch-ae | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/dptutil/patches/patch-ae b/sysutils/dptutil/patches/patch-ae new file mode 100644 index 00000000000..e2d3269797a --- /dev/null +++ b/sysutils/dptutil/patches/patch-ae @@ -0,0 +1,61 @@ +$NetBSD: patch-ae,v 1.1.1.1 2002/12/09 11:07:20 ad Exp $ + +--- dpteng/osd_unix.c.orig Fri Dec 6 07:56:59 2002 ++++ dpteng/osd_unix.c Sat Dec 7 17:15:49 2002 +@@ -3676,7 +3676,7 @@ + uCHAR DataBuff[100]; + EATA_CP pkt; + int IoctlRtn; +-# if (defined(_DPT_FREE_BSD)) ++# if (defined(_DPT_FREE_BSD)) && !defined(__NetBSD__) + int c; + int i2oMajorNode = 0; + FILE *fp = popen ( +@@ -3695,7 +3695,7 @@ + NumEntries = 0; + for(i = 0; i < MAX_HAS; ++i) + { +-# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) ++# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) && !defined(__NetBSD__) + int created = 0; + # endif + +@@ -3710,7 +3710,7 @@ + IoctlRtn = osdSendIoctl(&HbaDevs[NumEntries],DPT_SIGNATURE, + DataBuff,&pkt); + +-# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) ++# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) && !defined(__NetBSD__) + /* + * Use Alternate access. + */ +@@ -3758,7 +3758,7 @@ + HbaDevs[NumEntries].IoAddress = 0xffffffff; + ++NumEntries; + } +-# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) ++# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) && !defined(__NetBSD__) + else if (created) + { + unlink (HbaDevs[NumEntries].NodeName); +@@ -3777,8 +3777,10 @@ + } + HbaDevs[NumEntries].Flags = 0; + strcpy(HbaDevs[NumEntries].NodeName,"/dev"); +-# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) ++# if (defined(_DPT_BSDI) || defined(_DPT_FREE_BSD)) && !defined(__NetBSD__) + strcat(HbaDevs[NumEntries].NodeName,"/rdptr"); ++# elif (defined(__NetBSD__)) ++ strcat(HbaDevs[NumEntries].NodeName,"/dpt"); + # else + strcat(HbaDevs[NumEntries].NodeName,"/dptr"); + # endif +@@ -3789,7 +3791,7 @@ + mknod(HbaDevs[NumEntries].NodeName, S_IFCHR|S_IRUSR|S_IWUSR, + (MAJOR_NODE << 20) + (i << 10) + 0); + # undef MAJOR_NODE +-# elif (defined(_DPT_FREE_BSD)) ++# elif (defined(_DPT_FREE_BSD)) && !defined(__NetBSD__) + # define MAJOR_NODE 88 + mknod(HbaDevs[NumEntries].NodeName, S_IFCHR|S_IRUSR|S_IWUSR, + (MAJOR_NODE << 8) + i); |