1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/graphics/graphviz/files/patch-ae
Kevin Lo 0fbbda6c5f Update to version 1.7a
PR: 22832
Submitted by: Ports Fury
2000-11-14 15:49:46 +00:00

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