pkgsrc-wip/ppr/patches/patch-af
Hauke Fath 09d4059621 PPR is a Unix print spooler expressly designed for operating
PostScript printers.

Its features are numerous, and it supports PostScript printers
connected to parallel or serial ports, or over the network through
AppleTalk, LanManager, LPD, and TCP/IP protocols. It accepts jobs from
SMB clients (such as Microsoft Windows), Macintosh, and Unix clients.

PPR is designed for PostScript printing, so it can detect PostScript
errors. If the input file is not PostScript, it can pipe the input
through a filter. PPR has been designed to manage large numbers of
printers with minimal operator attention.

Builds, installs and pkglints. For anything else, see the TODO.
2005-05-06 08:57:54 +00:00

28 lines
654 B
Text

$NetBSD: patch-af,v 1.1 2005/05/06 08:58:01 hfath Exp $
--- include/sysdep.h.orig 2004-02-04 06:03:54.000000000 +0100
+++ include/sysdep.h
@@ -295,13 +295,23 @@ int select(int nfds, fd_set *readfds, fd
#ifdef PPR_NETBSD
#ifdef PASS1
+#include <sys/param.h>
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 300000000)
+#define HAVE_STATVFS 1
+#else
#define HAVE_STATFS 1
+#endif
+
#define HAVE_INITGROUPS 1
#endif
#ifdef PASS2
+/* This must be really old information... */
+#if 0
#define setsid() setpgrp(0, getpid()) /* setsid() (Posix?) is missing */
+#endif
+
#undef SENDMAIL_PATH
#define SENDMAIL_PATH "/usr/sbin/sendmail"