nnpfs does not compile on 0.36.1 on FreeBSD 5.2(Current).
Love
lha at stacken.kth.se
Tue Jun 15 18:30:01 CEST 2004
Klaus Robert Suetterlin <robert at mpe.mpg.de> writes:
> Hi,
>
> I'm trying to get arla compiled an a alpha-freebsd52 system. make fails
> in nnpfs_wrap-bsd.c (line 139) because of makedev not beeing defined.
(untested)
Love
Index: nnpfs_wrap-bsd.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/nnpfs/bsd/nnpfs_wrap-bsd.c,v
retrieving revision 1.47
diff -u -u -w -r1.47 nnpfs_wrap-bsd.c
--- nnpfs_wrap-bsd.c 8 Feb 2004 16:34:31 -0000 1.47
+++ nnpfs_wrap-bsd.c 15 Jun 2004 16:26:43 -0000
@@ -133,10 +133,17 @@
static void
destroy_devices (struct cdevsw *devsw)
{
+ dev_t d;
int i;
- for (i = 0; i < NNNPFS; ++i)
- destroy_dev (makedev (devsw->d_maj, i));
+ for (i = 0; i < NNNPFS; ++i) {
+#if defined(__FreeBSD__) && __FreeBSD_version >= 502103
+ d = udev2dev (makeudev(devsw->d_maj, i));
+#else
+ d = makedev (devsw->d_maj, i);
+#endif
+ destroy_dev (d);
+ }
}
/*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00007.pgp
Type: application/octet-stream
Size: 477 bytes
Desc: "PGP signature"
Url : http://lists.stacken.kth.se/pipermail/arla-drinkers/attachments/00000000/6d70e219/pgp00007.obj
More information about the Arla-drinkers
mailing list