mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
0fbbda6c5f
PR: 22832 Submitted by: Ports Fury
15 lines
396 B
Plaintext
15 lines
396 B
Plaintext
--- lefty/lefty.c.orig Mon Oct 9 09:19:43 2000
|
|
+++ lefty/lefty.c Fri Nov 3 04:20:09 2000
|
|
@@ -44,7 +44,11 @@
|
|
#define canread(fp) ((fp)->_IO_read_end > (fp)->_IO_read_ptr)
|
|
#else
|
|
#ifdef NO_CNT_IN_FILESTRUCT
|
|
+#ifdef __FreeBSD__
|
|
+#define canread(fp) ((fp)->_r > 0)
|
|
+#else
|
|
#define canread(fp) ((fp)->_IO_read_end > (fp)->_IO_read_ptr)
|
|
+#endif
|
|
#else
|
|
#define canread(fp) ((fp)->_cnt > 0)
|
|
#endif
|