Skip to content

Commit

Permalink
tests/dynports: Include missing string header
Browse files Browse the repository at this point in the history
When compiling on Darwin, we get the following error:

  dynports.cc:94:5: error: no member named 'to_string' in namespace 'std'

The <string> header is not included anywhere in the headers leading to
dynports.cc, so I suspect that on glibc the header is implicitly
included.

Adding an explicit inclusion fixes this and of course is also way more
portable.

Signed-off-by: aszlig <[email protected]>
  • Loading branch information
aszlig committed Jul 8, 2021
1 parent 4ca6935 commit a8c872a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/dynports.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <string>
#include <stdexcept>

#include "dynports.hh"
Expand Down

0 comments on commit a8c872a

Please sign in to comment.