linamh/kde-misc/kgtk/files/kgtk-0.10.0-gcc433.patch
geos_one f8647230c5 add kde tools
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@903 6952d904-891a-0410-993b-d76249ca496b
2009-03-29 07:05:36 +00:00

17 lines
591 B
Diff

--- common/common.h.orig 2009-02-03 19:54:32.000000000 +0500
+++ common/common.h 2009-02-03 19:55:09.000000000 +0500
@@ -205,7 +205,12 @@
{
do
{
- lockFd=open(getLockName(), O_WRONLY | O_CREAT | O_EXCL);
+#if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 3 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ > 2)))
+ lockFd=open(getLockName(), O_WRONLY | O_CREAT | O_EXCL, 0777);
+#else
+ lockFd=open(getLockName(), O_WRONLY | O_CREAT | O_EXCL);
+#endif
+
if (lockFd<0 && errno==EEXIST)
{
/* Hmm, lock file already exists. Is it stale? */