freebsd-ports/editors/openoffice.org-vcltesttool/files/patch-i86558
Maho Nakata 04c84963bb Mute "paperconf not found error".
Submitted by:	jkim
2008-03-07 21:56:45 +00:00

18 lines
657 B
Text

--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{