openbsd-ports/print/py-cups/patches/patch-cupsppd_c

13 lines
473 B
Plaintext

$OpenBSD: patch-cupsppd_c,v 1.3 2009/07/27 07:32:20 ajacoutot Exp $
--- cupsppd.c.orig Tue Dec 23 18:13:38 2008
+++ cupsppd.c Mon Jul 27 09:26:20 2009
@@ -507,7 +507,7 @@ PPD_nondefaultsMarked (PPD *self)
return PyBool_FromLong (nondefaults_marked);
}
-#ifdef __SVR4
+#if defined(__SVR4) || defined(__OpenBSD__)
/*
* A rudimentary emulation of getline() for systems that dont support it
* natively. Since this is used for PPD file reading, it assumes (possibly