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

List:       kde-devel
Subject:    Re: Can't compile kdelibs
From:       Paul Sprakes <pauls () sprakes ! co ! uk>
Date:       2004-09-24 10:38:01
Message-ID: 200409241138.02007.pauls () sprakes ! co ! uk
[Download RAW message or body]

On Friday 24 Sep 2004 10:36, David Faure wrote:
> On Friday 24 September 2004 11:03, Paul Sprakes wrote:
> > Fails with the following:
> > fakes_nonpic.c: In function `mkstemps':
> > fakes_nonpic.c:215: error: syntax error before ':' token
>
> Thanks for the info. I relayed to js and he just fixed it.

Thanks, unfortunately the update didn't work as it is - I had to move the 
_WIN32 block up a few lines above #ifndef HAVE_SETENV

See attached patch to see what I mean.

["kde_open.patch" (text/x-diff)]

Index: fakes.c
===================================================================
RCS file: /home/kde/kdelibs/kdecore/fakes.c,v
retrieving revision 1.22
diff -U3 -r1.22 fakes.c
--- fakes.c	24 Sep 2004 09:33:10 -0000	1.22
+++ fakes.c	24 Sep 2004 10:31:01 -0000
@@ -23,6 +23,13 @@
 
 #include <config.h>
 
+#ifdef _WIN32
+#include <kde_file_win.h>
+#define KDE_open kdewin32_open
+#else
+#define KDE_open open
+#endif
+
 #ifndef HAVE_SETENV
 
 #ifdef HAVE_ALLOCA_H
@@ -33,12 +40,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#ifdef _WIN32
-#include <kde_file_win.h>
-#define KDE_open kdewin32_open
-#else
-#define KDE_open open
-#endif
+
 
 KDECORE_EXPORT int setenv(const char *name, const char *value, int overwrite) {
     int i;


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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