Failures on non-C99 compilers.

Josh Howard jrh at zeppelin.net
Wed Jun 9 09:36:39 CEST 2004


(I apologize if anyone gets this twice, I sent it to the xfce-dev
list not realizing that it seems dead.)

Hello there,

On my system, (FreeBSD 4.8 with gcc2.95.4) I'm unable to compile
several of the xfce4 components out of cvs. I tracked down almost all
of the issues to the use of declarations and statements being
intermixed, which I assume is allowed by gcc 3.x, but not by older
compilers. The fixes are pretty simple, so I'll put a link to the fixes.

http://www.jrh.org/xfce4-gcc.diff

In addition, there's an issue with compiling
xfce4-session/xfce4-session/xfsm-shutdown-helper.c due to resource.h
requiring time.h I put this little patch together in order to get it
to compile, but I'm not sure what sort of issues this would cause on
non-FreeBSD platforms:

diff -u -r1.2 xfsm-shutdown-helper.c
--- xfce4-session/xfce4-session/xfsm-shutdown-helper.c  21 May 2004
20:06:33 -0000      1.2
+++ xfce4-session/xfce4-session/xfsm-shutdown-helper.c  8 Jun 2004
20:46:30 -0000
@@ -27,6 +27,9 @@
 #include <sys/types.h>
 #endif
 #ifdef HAVE_SYS_RESOURCE_H
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 #include <sys/resource.h>
 #endif
 
Anyway, thank you for your time.

-- 
Josh Howard <jrh at zeppelin.net>





More information about the Xfce4-dev mailing list