Package: libcdaudio
Severity: important
Version: 0.99.12p2-5
Tags: patch
User: [EMAIL PROTECTED]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweak, see bellow, as there are
defined both HAVE_GETMNTENT and HAVE_GETMNTINFO.
It would also be nice if you can ask upstream
to include similar change.
Thanks in advance
Petr
only in patch2:
unchanged:
--- libcdaudio-0.99.12p2.orig/src/cdaudio.c
+++ libcdaudio-0.99.12p2/src/cdaudio.c
@@ -118,8 +118,7 @@
#elif defined(HAVE_GETMNTENT)
FILE *mounts;
struct mntent *mnt;
-#endif
-#ifdef HAVE_GETMNTINFO
+#elif defined(HAVE_GETMNTINFO)
int mounts;
struct statfs *mnt;
#endif
@@ -163,8 +162,7 @@
}
}
endmntent(mounts);
-#endif
-#ifdef HAVE_GETMNTINFO
+#elif defined(HAVE_GETMNTINFO)
for ( (mounts = getmntinfo(&mnt, 0)); mounts > 0;)
{
mounts--;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]