Skip to content

Commit 3da0fbc

Browse files
committed
tests/dynports: Include missing string header
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 <aszlig@nix.build>
1 parent e30dc03 commit 3da0fbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/dynports.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <string>
12
#include <stdexcept>
23

34
#include "dynports.hh"

0 commit comments

Comments
 (0)