mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
This commit is based (not entirely) on a patch submitted by Poitr Kubaj <pkubaj@anongoth.pl> in PR 234251. PR: 234251
20 lines
714 B
C++
20 lines
714 B
C++
--- xpdf-qt/XpdfWidgetPrint.cc.orig 2017-08-08 16:22:50.000000000 -0700
|
|
+++ xpdf-qt/XpdfWidgetPrint.cc 2017-09-17 21:42:14.242967000 -0700
|
|
@@ -21,7 +21,7 @@
|
|
#elif defined(__APPLE__)
|
|
# include <CoreFoundation/CoreFoundation.h>
|
|
# include <ApplicationServices/ApplicationServices.h>
|
|
-#elif defined(__linux__)
|
|
+#elif defined(__linux__) || defined(__FreeBSD__)
|
|
# include "PSOutputDev.h"
|
|
# include <cups/cups.h>
|
|
#endif
|
|
@@ -315,7 +315,7 @@
|
|
// Linux
|
|
//------------------------------------------------------------------------
|
|
|
|
-#elif defined(__linux__)
|
|
+#elif defined(__linux__) || defined(__FreeBSD__)
|
|
|
|
static void fileOut(void *stream, const char *data, int len) {
|
|
fwrite(data, 1, len, (FILE *)stream);
|