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:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user