$NetBSD$

--- cupsppd.c.orig	2008-07-06 05:19:02.000000000 +1200
+++ cupsppd.c
@@ -451,7 +451,7 @@ PPD_nondefaultsMarked (PPD *self)
   return PyBool_FromLong (nondefaults_marked);
 }
 
-#ifdef __SVR4
+#if defined(__SVR4) || defined(__OpenBSD__) || defined(__NetBSD__)
 /*
  * A rudimentary emulation of getline() for systems that dont support it
  * natively.  Since this is used for PPD file reading, it assumes (possibly
