[X2Go-Commits] [x2goclient] 09/95: unixhelper.{h, cpp}: also include <QtCore/qglobal.h> to have Q_OS_UNIX defined on UNIX-based platforms. Move guards around.

git-admin at x2go.org git-admin at x2go.org
Thu Oct 29 03:33:30 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit a9132ec9f75c6d0a9ae5d0812f7a7a1886efb68b
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Mar 16 21:13:05 2015 +0100

    unixhelper.{h,cpp}: also include <QtCore/qglobal.h> to have Q_OS_UNIX defined on UNIX-based platforms. Move guards around.
---
 debian/changelog   |    2 ++
 src/unixhelper.cpp |    5 ++++-
 src/unixhelper.h   |    9 ++++++---
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c270088..5a033af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ x2goclient (4.0.5.1-0x2go1) UNRELEASED; urgency=low
     - x2goclient.cpp: add legacy <sys/types.h> header needed for old operating
       systems.
     - x2goclient.cpp: fix std::edit -> std::exit typo.
+    - unixhelper.{h,cpp}: also include <QtCore/qglobal.h> to have Q_OS_UNIX
+      defined on UNIX-based platforms. Move guards around.
 
   [ Oleksandr Shneyder ]
   * New upstream release (4.0.5.1):
diff --git a/src/unixhelper.cpp b/src/unixhelper.cpp
index 545c2c1..b326f35 100644
--- a/src/unixhelper.cpp
+++ b/src/unixhelper.cpp
@@ -17,6 +17,10 @@
  *  59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
  ***************************************************************************/
 
+/* Necessary for Q_OS_UNIX! */
+
+#include "unixhelper.h"
+
 #ifdef Q_OS_UNIX
 
 #include <csignal>
@@ -26,7 +30,6 @@
 #include <cerrno>
 #include <cstdlib>
 
-#include "unixhelper.h"
 
 void unixhelper::kill_pgroup (int signal) {
   if (SIGHUP == signal) {
diff --git a/src/unixhelper.h b/src/unixhelper.h
index fab611e..27cb735 100644
--- a/src/unixhelper.h
+++ b/src/unixhelper.h
@@ -17,11 +17,14 @@
  *  59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
  ***************************************************************************/
 
-#ifdef Q_OS_UNIX
 
 #ifndef UNIXHELPER_H
 #define UNIXHELPER_H
 
+#include <QtCore/qglobal.h>
+
+#ifdef Q_OS_UNIX
+
 class unixhelper {
   public:
     unixhelper () {}
@@ -33,6 +36,6 @@ class unixhelper {
     void kill_pgroup (int signal);
 };
 
-#endif /* !defined (UNIXHELPER_H) */
-
 #endif /* defined (Q_OS_UNIX) */
+
+#endif /* !defined (UNIXHELPER_H) */

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list