]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix build with boost 1.86.0 14562/head
authorMichael Cho <michael@michaelcho.dev>
Fri, 16 Aug 2024 02:49:17 +0000 (22:49 -0400)
committerMichael Cho <michael@michaelcho.dev>
Fri, 16 Aug 2024 02:49:20 +0000 (22:49 -0400)
Boost 1.86.0 changes seem to no longer indirectly include header which
causes build to fail with:
```
uuid-utils.cc:38:58:
error: 'random' is not a class, namespace, or enumeration
```

boost/random/mersenne_twister.hpp has been available since Boost 1.21.2

pdns/uuid-utils.cc

index c59e0a0d0daae040c81bbfbb29357017690e5814..301daff0bb1ee1e9390cee1708c8e6e7eb7bf031 100644 (file)
@@ -30,6 +30,7 @@
 #endif /* BOOST_PENDING_INTEGER_LOG2_HPP */
 #endif /* BOOST_VERSION */
 
+#include <boost/random/mersenne_twister.hpp>
 #include <boost/uuid/uuid_generators.hpp>
 
 // The default of: