]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist-protocols.hh: include <cstdint> 12569/head
authorSander Hoentjen <shoentjen@antagonist.nl>
Mon, 20 Feb 2023 15:51:07 +0000 (16:51 +0100)
committerSander Hoentjen <shoentjen@antagonist.nl>
Mon, 20 Feb 2023 15:51:07 +0000 (16:51 +0100)
This fixes building dnsdist with gcc13:
```
In file included from dnsdist-protocols.cc:26:
dnsdist-protocols.hh:32:8: error: use of enum 'typeenum' without previous declaration
   32 |   enum typeenum : uint8_t
      |        ^~~~~~~~
dnsdist-protocols.hh:32:19: error: 'uint8_t' was not declared in this scope
   32 |   enum typeenum : uint8_t
      |                   ^~~~~~~
dnsdist-protocols.hh:25:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   24 | #include <vector>
  +++ |+#include <cstdint>
   25 | #include <string>
```

pdns/dnsdist-protocols.hh

index c5c5743908d236d6d8e5eb674d0345a2cf8acd54..bd2a4bb8ad1a354e69c074bc914de90eadfcce1a 100644 (file)
@@ -22,6 +22,7 @@
 #pragma once
 
 #include <array>
+#include <cstdint>
 #include <string>
 
 namespace dnsdist