[105998] trunk/dports/finance/abtransfers/files/patch-main.cpp.diff

mk at macports.org mk at macports.org
Sun May 12 14:18:35 PDT 2013


Revision: 105998
          https://trac.macports.org/changeset/105998
Author:   mk at macports.org
Date:     2013-05-12 14:18:35 -0700 (Sun, 12 May 2013)
Log Message:
-----------
abtransfers: use in patch conditional compile as it is now in abtransfers' SVN

Modified Paths:
--------------
    trunk/dports/finance/abtransfers/files/patch-main.cpp.diff

Modified: trunk/dports/finance/abtransfers/files/patch-main.cpp.diff
===================================================================
--- trunk/dports/finance/abtransfers/files/patch-main.cpp.diff	2013-05-12 21:07:11 UTC (rev 105997)
+++ trunk/dports/finance/abtransfers/files/patch-main.cpp.diff	2013-05-12 21:18:35 UTC (rev 105998)
@@ -1,23 +1,22 @@
 Index: src/main.cpp
 ===================================================================
---- src/main.cpp	(revision 389)
-+++ src/main.cpp	(working copy)
+--- src/main.cpp	(revision 391)
++++ src/main.cpp	(revision 392)
 @@ -71,6 +71,9 @@
  	app.setOrganizationDomain("schmufu.dyndns.org");
  	app.setApplicationName("AB-Transfers");
  
-+/***************************************************************************
-+  DISABLED SHARED MEMORY CREATION on Mac OSX
-+  
++	//On MacOS the QSharedMemory seems not to work as assumed.
++	//Therefore, as a fast workaround, we do not use the protection on MacOS.
++#if !defined(Q_OS_MAC)
  	//The program should be started only once!
  	//Therefore we create a sharedMemory and check if it already exists.
  	//As key for the sharedMemory the program name and the "Key-ID" from
-@@ -122,6 +125,8 @@
+@@ -122,6 +125,7 @@
  				   << "Error:" << myMem.errorString();
  		}
  	}
-+	
-+***************************************************************************/
++#endif // !defined(Q_OS_MAC)
  
  
  	//creation of global objects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130512/5d0df67b/attachment.html>


More information about the macports-changes mailing list