aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbutl/standard-version.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbutl/standard-version.hxx b/libbutl/standard-version.hxx
index 22078f5..3a5b2a5 100644
--- a/libbutl/standard-version.hxx
+++ b/libbutl/standard-version.hxx
@@ -14,6 +14,16 @@
#include <libbutl/optional.hxx>
+// FreeBSD defines these macros in its <sys/types.h>.
+//
+#ifdef major
+# undef major
+#endif
+
+#ifdef minor
+# undef minor
+#endif
+
namespace butl
{
// The build2 "standard version" (specific, earliest and stub):