[etherlab-dev] [PATCH] QtPdWidgets-1.3.2: include <unistd.h> into src/Process.cpp

Sebastien BLANCHET blanchet at iram.fr
Sat Dec 14 16:14:38 CET 2013


This is patch for QtPdWidgets-1.3.2 to fix compilation issue on Debian 7.
The compiler says:
src/Process.cpp:295:36: error: ‘getlogin’ was not declared in this scope
src/Process.cpp:302:56: error: ‘gethostname’ was not declared in this scope

include <unistd.h> to fix it

--- QtPdWidgets-1.3.2/src/Process.cpp.orig	2010-01-12 14:05:46.000000000 
+++ QtPdWidgets-1.3.2/src/Process.cpp	2013-12-14 16:01:41.000000000 +0100
@@ -24,7 +24,7 @@

  #include <string>
  #include <list>
+#include <unistd.h>
  #include <QDebug>

  #include "QtPdWidgets/Process.h"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: QtPdWidgets-1.3.2_debian7.patch
Type: text/x-patch
Size: 287 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20131214/c64ef197/attachment-0003.bin>

More information about the Etherlab-dev mailing list