22 lines
899 B
Text
22 lines
899 B
Text
$NetBSD: patch-aq,v 1.1 2005/12/02 22:57:32 joerg Exp $
|
|
|
|
--- kanakan/depend.c.orig 2005-12-02 22:30:03.000000000 +0000
|
|
+++ kanakan/depend.c
|
|
@@ -318,7 +318,7 @@ char *passwd;
|
|
serv_errno = SJ3_IncorrectPasswd; goto error1;
|
|
}
|
|
|
|
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
|
|
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
|
|
if ((dp = (Uchar *)malloc((long)sbuf.st_size)) == NULL) {
|
|
#else
|
|
if ((dp = (Uchar *)malloc(sbuf.st_size)) == NULL) {
|
|
@@ -330,7 +330,7 @@ char *passwd;
|
|
}
|
|
memset(dfp, '\0', sizeof(*dfp));
|
|
|
|
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__)
|
|
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__DragonFly__)
|
|
if (fgetfile(fp, 0L, (long)sbuf.st_size, dp) == ERROR) goto error3;
|
|
#else
|
|
if (fgetfile(fp, 0L, sbuf.st_size, dp) == ERROR) goto error3;
|