Files
ports/devel/gn/files/patch-src_gn_version.h
T
Steve Wills 17da0695cc devel/gn: Fix build on 11.4 and 11-STABLE
PR:		249504
Submitted by:	Oleh Hushchenkov <o.hushchenkov@gmail.com> (maintainer)
2020-09-21 16:46:18 +00:00

19 lines
310 B
C++

--- src/gn/version.h.orig 2020-09-21 09:21:46 UTC
+++ src/gn/version.h
@@ -8,6 +8,15 @@
#include <optional>
#include <string>
+// Undefine major/minor from sys/types.h
+#ifdef major
+#undef major
+#endif
+
+#ifdef minor
+#undef minor
+#endif
+
// Represents a semantic version.
class Version {
public: