3c497f3de3
Add DragonFly support.
16 lines
530 B
Text
16 lines
530 B
Text
$NetBSD: patch-ab,v 1.2 2006/02/26 21:26:32 joerg Exp $
|
|
|
|
--- src/hd/rhdisp.c.orig 2004-04-10 02:54:06.000000000 +0000
|
|
+++ src/hd/rhdisp.c
|
|
@@ -22,8 +22,10 @@ static const char RCSid[] = "$Id: rhdisp
|
|
#define FSIZDEF 0.125 /* default focus frame size */
|
|
#endif
|
|
|
|
-#if defined(freebsd)
|
|
+#if defined(freebsd) || defined(netbsd)
|
|
#define fbufcnt(f) ((f)->_r)
|
|
+#elif defined(dragonfly)
|
|
+#define fbufcnt(f) (((struct __FILE_public *)(f))->_r)
|
|
#elif defined(__GNUC__)
|
|
#define fbufcnt(f) ((f)->_IO_read_end - (f)->_IO_read_ptr)
|
|
#else
|