]> granicus.if.org Git - icinga2/commitdiff
Fixed compilation errors on *NIX.
authorGunnar Beutner <gunnar@beutner.name>
Fri, 13 Jul 2012 19:07:39 +0000 (21:07 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 13 Jul 2012 19:07:39 +0000 (21:07 +0200)
base/Makefile.am
base/asynctask.h
base/process.cpp
base/process.h
cib/Makefile.am
cib/nagioschecktask.cpp

index 24d7699cc02f097a0194055d051f26e76ac2b582..24d60168da370b9bf7792cbaaf0780aa260fead5 100644 (file)
@@ -65,7 +65,8 @@ libbase_la_CPPFLAGS = \
        $(LTDLINCL) \
        $(BOOST_CPPFLAGS) \
        $(OPENSSL_INCLUDES) \
-       -I${top_srcdir}/third-party/mmatch
+       -I${top_srcdir}/third-party/mmatch \
+       -I${top_srcdir}/third-party/popen-noshell
 
 libbase_la_LDFLAGS = \
        $(BOOST_LDFLAGS) \
@@ -79,4 +80,5 @@ libbase_la_LIBADD = \
        $(OPENSSL_LIBS) \
        $(BOOST_SIGNALS_LIB) \
        $(BOOST_THREAD_LIB) \
-       ${top_builddir}/third-party/mmatch/libmmatch.la
+       ${top_builddir}/third-party/mmatch/libmmatch.la \
+       ${top_builddir}/third-party/popen-noshell/libpopen_noshell.la
index df1614403342e3506ec32454117d3572b51c734e..08237355ce950b29f158e5bb1cfe91b721644a71 100644 (file)
@@ -1,3 +1,22 @@
+/******************************************************************************
+ * Icinga 2                                                                   *
+ * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/)        *
+ *                                                                            *
+ * This program is free software; you can redistribute it and/or              *
+ * modify it under the terms of the GNU General Public License                *
+ * as published by the Free Software Foundation; either version 2             *
+ * of the License, or (at your option) any later version.                     *
+ *                                                                            *
+ * This program is distributed in the hope that it will be useful,            *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
+ * GNU General Public License for more details.                               *
+ *                                                                            *
+ * You should have received a copy of the GNU General Public License          *
+ * along with this program; if not, write to the Free Software Foundation     *
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
+ ******************************************************************************/
+
 #ifndef ASYNCTASK_H
 #define ASYNCTASK_H 
 
@@ -42,7 +61,7 @@ protected:
        bool m_Finished;
 
 private:
-       static void FinishForwarder(typename const shared_ptr<T>& task)
+       static void FinishForwarder(const shared_ptr<T>& task)
        {
                task->OnTaskCompleted(task);
        }
index 439ad34edc3563933c3c72fcc78a0bcdeac1cce4..2d1d8292bb06c6e8ae88d8768d83c93b396b6249 100644 (file)
@@ -1,5 +1,28 @@
+/******************************************************************************
+ * Icinga 2                                                                   *
+ * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/)        *
+ *                                                                            *
+ * This program is free software; you can redistribute it and/or              *
+ * modify it under the terms of the GNU General Public License                *
+ * as published by the Free Software Foundation; either version 2             *
+ * of the License, or (at your option) any later version.                     *
+ *                                                                            *
+ * This program is distributed in the hope that it will be useful,            *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
+ * GNU General Public License for more details.                               *
+ *                                                                            *
+ * You should have received a copy of the GNU General Public License          *
+ * along with this program; if not, write to the Free Software Foundation     *
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
+ ******************************************************************************/
+
 #include "i2-base.h"
 
+#ifndef _MSC_VER
+#      include "popen_noshell.h"
+#endif /* _MSC_VER */
+
 using namespace icinga;
 
 bool Process::m_ThreadsCreated = false;
index f7b45cbf080ca50e1e5287090105992e934a6ce6..4aa0e7f77b1d40b099ef08fe4892c8e2f862a983 100644 (file)
@@ -1,3 +1,22 @@
+/******************************************************************************
+ * Icinga 2                                                                   *
+ * Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/)        *
+ *                                                                            *
+ * This program is free software; you can redistribute it and/or              *
+ * modify it under the terms of the GNU General Public License                *
+ * as published by the Free Software Foundation; either version 2             *
+ * of the License, or (at your option) any later version.                     *
+ *                                                                            *
+ * This program is distributed in the hope that it will be useful,            *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
+ * GNU General Public License for more details.                               *
+ *                                                                            *
+ * You should have received a copy of the GNU General Public License          *
+ * along with this program; if not, write to the Free Software Foundation     *
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
+ ******************************************************************************/
+
 #ifndef PROCESS_H
 #define PROCESS_H
 
index 9b33ce5c2475a117abe34f3232e089f6cd3d18fa..9a427408abf04c72fa4b2d404fe7fbdc058d0832 100644 (file)
@@ -34,8 +34,7 @@ libcib_la_CPPFLAGS = \
        -I${top_srcdir}/base \
        -I${top_srcdir}/dyn \
        -I${top_srcdir}/jsonrpc \
-       -I${top_srcdir}/icinga \
-       -I${top_srcdir}/third-party/popen-noshell
+       -I${top_srcdir}/icinga
 
 libcib_la_LDFLAGS = \
        $(BOOST_LDFLAGS) \
@@ -49,5 +48,4 @@ libcib_la_LIBADD = \
        ${top_builddir}/base/libbase.la \
        ${top_builddir}/dyn/libdyn.la \
        ${top_builddir}/jsonrpc/libjsonrpc.la \
-       ${top_builddir}/icinga/libicinga.la \
-       ${top_builddir}/third-party/popen-noshell/libpopen_noshell.la
+       ${top_builddir}/icinga/libicinga.la
index 334c1ffe87b57f5a8a4b93db21b51a6fe33db7ee..b17147d62a0cd86d93fdb12fddc8aa52503d5eee 100644 (file)
 
 #include "i2-cib.h"
 
-#ifndef _MSC_VER
-#      include "popen_noshell.h"
-#endif /* _MSC_VER */
-
 using namespace icinga;
 
 NagiosCheckTask::NagiosCheckTask(const Service& service)