SVN-583 problem with std::atoll on NetBSD

Help
2008-01-13
2013-04-25
  • Simon Burge

    Simon Burge - 2008-01-13

    I get the following error when compiling on NetBSD 4.0:

       lib/HTTP/HTTPMessage.cpp:789: error: 'atoll' is not a member of 'std'

    Just removing the "std::" part fixes it for me:

    Index: src/lib/HTTP/HTTPMessage.cpp

    --- src/lib/HTTP/HTTPMessage.cpp        (revision 583)
    +++ src/lib/HTTP/HTTPMessage.cpp        (working copy)
    @@ -786,7 +786,7 @@
       if(rxContentLength.Search(p_sMessage.c_str()))
       {
         string sContentLength = rxContentLength.Match(1);   
    -    m_nContentLength = std::atoll(sContentLength.c_str());
    +    m_nContentLength = atoll(sContentLength.c_str());
       }
      
       if((unsigned int)m_nContentLength >= p_sMessage.length())                     

    Simon.

     
    • Ulrich Völkel

      Ulrich Völkel - 2008-01-14

      Thanks for reporting!

      - Uli

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks