$OpenBSD: patch-postscript_c,v 1.1 2010/05/07 16:08:54 ajacoutot Exp $

From pkgsrc.
Prevent bogus 'Job does not start with "%!", is it PostScript?' errors.

--- postscript.c.orig	Mon Feb 15 13:57:40 2010
+++ postscript.c	Fri May  7 18:00:40 2010
@@ -193,6 +193,8 @@ int print_ps(FILE *file, const char *alreadyread, size
         _log("Could not dup %s to stdin.\n", filename);
         return 0;
     }
+    if (file != stdin)
+	rewind(stdin);
 
     stream.pos = 0;
     stream.file = stdin;
