From 1bc35f29e09ca3350aac18cd7819abddfd413503 Mon Sep 17 00:00:00 2001 From: maroy Date: Fri, 8 Apr 2005 14:00:44 +0000 Subject: [PATCH] included missing errno.h, fixing bug #785, see http://bugs.campware.org/view.php?id=785 --- livesupport/modules/core/etc/configure.ac | 6 +++--- livesupport/modules/core/src/BaseTestMethod.cxx | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/livesupport/modules/core/etc/configure.ac b/livesupport/modules/core/etc/configure.ac index 6e2e43756..bae1300dc 100644 --- a/livesupport/modules/core/etc/configure.ac +++ b/livesupport/modules/core/etc/configure.ac @@ -21,7 +21,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA dnl dnl dnl Author : $Author: maroy $ -dnl Version : $Revision: 1.9 $ +dnl Version : $Revision: 1.10 $ dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/etc/configure.ac,v $ dnl----------------------------------------------------------------------------- @@ -35,14 +35,14 @@ dnl----------------------------------------------------------------------------- AC_INIT(Core, 1.0, bugs@campware.org) AC_PREREQ(2.59) AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL]) -AC_REVISION($Revision: 1.9 $) +AC_REVISION($Revision: 1.10 $) AC_CONFIG_SRCDIR(../src/UniqueId.cxx) AC_CONFIG_HEADERS(configure.h) AC_PROG_CXX() -AC_CHECK_HEADERS(getopt.h sys/time.h time.h sys/types.h pwd.h) +AC_CHECK_HEADERS(getopt.h sys/time.h time.h sys/types.h pwd.h errno.h) PKG_CHECK_MODULES(LIBXMLPP,[libxml++-2.6 >= 2.6.0]) AC_SUBST(LIBXMLPP_CFLAGS) diff --git a/livesupport/modules/core/src/BaseTestMethod.cxx b/livesupport/modules/core/src/BaseTestMethod.cxx index fdda0564b..ed510f623 100644 --- a/livesupport/modules/core/src/BaseTestMethod.cxx +++ b/livesupport/modules/core/src/BaseTestMethod.cxx @@ -22,7 +22,7 @@ Author : $Author: maroy $ - Version : $Revision: 1.1 $ + Version : $Revision: 1.2 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/src/BaseTestMethod.cxx,v $ ------------------------------------------------------------------------------*/ @@ -45,6 +45,12 @@ #error need pwd.h #endif +#ifdef HAVE_ERRNO_H +#include +#else +#error need errno.h +#endif + #include #include "LiveSupport/Core/BaseTestMethod.h"