[Boost-bugs] [Boost C++ Libraries] #3897: Test framework does not include <osreldate.h> before testing __FreeBSD_version

Subject: [Boost-bugs] [Boost C++ Libraries] #3897: Test framework does not include <osreldate.h> before testing __FreeBSD_version
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-04 10:32:56


#3897: Test framework does not include <osreldate.h> before testing
__FreeBSD_version
------------------------------------------------+---------------------------
 Reporter: janm-boost-bug@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: test
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: test freebsd osreldate version |
------------------------------------------------+---------------------------
 The file boost/test/impl/execution_monitor.ipp tests __FreeBSD_version
 without including <osreldate.h> first. This causes compilation warnings
 about preprocessor symbol redefinitions.

 Patch to fix the problem:

 diff -dur boost_1_42_0.orig/boost/test/impl/execution_monitor.ipp
 boost_1_42_0/boost/test/impl/execution_monitor.ipp
 --- boost_1_42_0.orig/boost/test/impl/execution_monitor.ipp 2009-11-28
 20:19:18.000000000 +1100
 +++ boost_1_42_0/boost/test/impl/execution_monitor.ipp 2010-02-04
 21:23:20.301652051 +1100
 @@ -155,6 +155,7 @@
  # include <setjmp.h>

  # if defined(__FreeBSD__)
 +# include <osreldate.h>

  # ifndef SIGPOLL
  # define SIGPOLL SIGIO

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3897>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC