summaryrefslogtreecommitdiff
path: root/print/gv/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'print/gv/patches/patch-ad')
-rw-r--r--print/gv/patches/patch-ad14
1 files changed, 14 insertions, 0 deletions
diff --git a/print/gv/patches/patch-ad b/print/gv/patches/patch-ad
new file mode 100644
index 00000000000..a7147137767
--- /dev/null
+++ b/print/gv/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.4 2005/02/24 07:43:30 reed Exp $
+
+--- src/file.c.orig Tue Dec 7 15:37:40 2004
++++ src/file.c
+@@ -296,6 +296,9 @@ file_fileIsNotUseful(fn)
+ errno = EISDIR;
+ } else if (s.st_size == 0) {
+ r = 1;
++#ifndef ENODATA
++#define ENODATA ENOMSG
++#endif
+ errno = ENODATA;
+ }
+ IMESSAGE(r)