[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/office/kile/src
From:       Patrick Spendrin <ps_ml () gmx ! de>
Date:       2008-11-30 18:18:56
Message-ID: 1228069136.593239.19896.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 890966 by sengels:

some ifdef's where a more in-depth rework is needed

 M  +6 -0      kilelyxserver.cpp  
 M  +4 -0      scriptmanager.cpp  


--- trunk/extragear/office/kile/src/kilelyxserver.cpp #890965:890966
@@ -125,7 +125,11 @@
 		if(!pipeInfo.exists()) {
 			//create the dir first
 			if(!QFileInfo(pipeInfo.absolutePath()).exists()) {
+#ifndef Q_OS_WIN
 				if(mkdir(QFile::encodeName( pipeInfo.path() ), m_perms | S_IXUSR) == -1) {
+#else
+				if(mkdir(QFile::encodeName( pipeInfo.path() )) == -1) {
+#endif
 					kError() << "Could not create directory for pipe";
 					continue;
 				}
@@ -133,6 +137,7 @@
 					KILE_DEBUG() << "Created directory " << pipeInfo.path();
 				}
 			}
+#ifndef Q_OS_WIN
 				if (mkfifo(QFile::encodeName( pipeInfo.absoluteFilePath() ), m_perms) != 0) {
 					kError() << "Could not create pipe: " << pipeInfo.absoluteFilePath();
 					continue;
@@ -140,6 +145,7 @@
 				else {
 					KILE_DEBUG() << "Created pipe: " << pipeInfo.absoluteFilePath();
 				}
+#endif
 		}
 		
 		if(symlink(QFile::encodeName(pipeInfo.absoluteFilePath()),QFile::encodeName(linkInfo.absoluteFilePath())) \
                != 0) {
--- trunk/extragear/office/kile/src/scriptmanager.cpp #890965:890966
@@ -66,18 +66,22 @@
 // Copyright (C) 2001-2003 David Faure (faure@kde.org)
 void KJSCPUGuard::start(unsigned int ms, unsigned int i_ms)
 {
+#ifndef Q_OS_WIN
   oldAlarmHandler = signal(SIGVTALRM, alarmHandler);
   itimerval tv = {
       { i_ms / 1000, (i_ms % 1000) * 1000 },
       { ms / 1000, (ms % 1000) * 1000 }
   };
   setitimer(ITIMER_VIRTUAL, &tv, &oldtv);
+#endif
 }
 
 void KJSCPUGuard::stop()
 {
+#ifndef Q_OS_WIN
   setitimer(ITIMER_VIRTUAL, &oldtv, NULL);
   signal(SIGVTALRM, oldAlarmHandler);
+#endif
 }
 
 void KJSCPUGuard::alarmHandler(int) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic