[X2Go-Dev] [PATCH] build: resolve compile error under g++-4.7
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Tue Nov 20 21:14:37 CET 2012
Hi Jan,
thanks for your patch. The sharetray.cpp includes sys/unistd.h. Isn't
your patch a redundancy?
Mike
On Di 20 Nov 2012 11:52:10 CET Jan Engelhardt wrote:
> sharetray.cpp: In member function 'void ShareTray::handleSigKeybInt()':
> sharetray.cpp:225:2: error: '::read' has not been declared
> [...]
> sharetray.cpp: In static member function 'static void
> ShareTray::keybintSignalHandler(int)':
> sharetray.cpp:272:2: error: '::write' has not been declared
> [...]
> sharetray.cpp: In member function 'void ShareTray::slotStartSharing()':
> sharetray.cpp:325:40: error: 'getuid' was not declared in this scope
> sharetray.cpp:325:84: error: 'chown' was not declared in this scope
> make: *** [sharetray.o] Error 1
> ---
> sharetray.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/sharetray.cpp b/sharetray.cpp
> index 7c74d24..ac210a6 100644
> --- a/sharetray.cpp
> +++ b/sharetray.cpp
> @@ -34,6 +34,7 @@
> #include <QDateTime>
> #include <grp.h>
> #include <QProcess>
> +#include <unistd.h>
> #define STAT_ACT_COUNT 10
>
> #define VERSION "3.0.1.6"
> --
> 1.7.10.4
>
> _______________________________________________
> X2Go-Dev mailing list
> X2Go-Dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/x2go-dev
>
--
DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20121120/c85f8de6/attachment.pgp>
More information about the x2go-dev
mailing list