summaryrefslogtreecommitdiff
path: root/net/dnsdist/patches/patch-qtype.hh
blob: 2c55348e3df4d604f09c2ba950e83a605e9248a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-qtype.hh,v 1.2 2022/10/24 11:08:15 jperkin Exp $

Avoid symbol pollution on SunOS.

--- qtype.hh.orig	2022-06-10 13:48:12.000000000 +0000
+++ qtype.hh
@@ -22,6 +22,10 @@
 #pragma once
 #include "namespaces.hh"
 
+#if defined(__sun) && defined(DS)
+#undef DS
+#endif
+
 /** The QType class is meant to deal easily with the different kind of resource types, like 'A', 'NS',
  *  'CNAME' etcetera. These types have both a name and a number. This class can seamlessly move between
  *   them. Use it like this: