blob: 1ae4b8e2db7b808079cb03649b0be0726e75de93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-al,v 1.2 2015/12/29 23:34:43 dholland Exp $
Dragonfly support.
--- Src/io.c.orig 2006-01-11 17:16:11.000000000 +0000
+++ Src/io.c
@@ -67,6 +67,9 @@
# define READ_DATA_PENDING(fp) (max(0,(fp)->_egptr - (fp)->_gptr))
# endif
#endif
+#if !defined(READ_DATA_PENDING) && defined(__DragonFly__)
+# define READ_DATA_PENDING(fp) (max(0,((struct __FILE_public *)(fp))->_r))
+#endif
#if (!defined (READ_DATA_PENDING)) && defined __SLBF
# define READ_DATA_PENDING(fp) (max(0,fp->_r))
#endif
|