Fix GCC build.

This commit is based (not entirely) on a patch submitted by
Poitr Kubaj <pkubaj@anongoth.pl> in PR 234251.

PR:		234251
This commit is contained in:
Cy Schubert
2018-12-24 18:29:40 +00:00
parent e980b845d2
commit ad02e6400a
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ CONFLICTS_INSTALL= xpdf
MANPREFIX= ${PREFIX}/share/xpdf
SUB_FILES= xpdf-man.conf
USES= cmake:outsource localbase
USES= compiler:c++11-lang cmake:outsource localbase:ldflags
CMAKE_ARGS+= -DOPI_SUPPORT:BOOL=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=ON \
-DUSE_LCMS:BOOL=OFF -DSYSTEM_XPDFRC=${PREFIX}/etc/xpdfrc

View File

@@ -5,7 +5,7 @@
# include <CoreFoundation/CoreFoundation.h>
# include <ApplicationServices/ApplicationServices.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD_cc_version)
+#elif defined(__linux__) || defined(__FreeBSD__)
# include "PSOutputDev.h"
# include <cups/cups.h>
#endif
@@ -14,7 +14,7 @@
//------------------------------------------------------------------------
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD_cc_version)
+#elif defined(__linux__) || defined(__FreeBSD__)
static void fileOut(void *stream, const char *data, int len) {
fwrite(data, 1, len, (FILE *)stream);