Package: cnews
Severity: important
Version: cr.g7-40
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweak, see bellow.
It would also be nice if you can ask upstream
to include this change.
Thanks in advance
Petr
--- util/dostatfs.c~
+++ util/dostatfs.c
@@ -18,21 +18,8 @@
#include <sys/mount.h>
/* Second, assorted variations... */
-#ifdef linux
-#define sun 1 /* Linux happens to be the same as Sun for
this... */
-#else
-#ifdef __linux__
-#define sun 1 /* a Linux by any other name... */
-#endif
-#endif
-#ifdef hpux
-#define sun 1 /* likewise HP */
-#endif
-#ifdef __FreeBSD__
-#define BSD4_4 1 /* and FreeBSD is sort of 4.4 */
-#endif
-#ifdef sun
+#if defined(sun) || defined(linux) || defined(__linux__) || defined(__GLIBC__)
|| defined(__GNU__) || defined(hpux)
#include <sys/vfs.h>
#define UNIT f_bsize
#endif
@@ -49,7 +36,7 @@
#define f_bavail f_bfree /* talk about kludges */
#endif
-#ifdef BSD4_4
+#if defined(BSD4_4) || defined(__FreeBSD__)
#define UNIT f_bsize
#endif
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]