[Bug 249504] devel/gn: Fix build on 11.4 and 11-STABLE
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 21 10:45:15 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249504
Bug ID: 249504
Summary: devel/gn: Fix build on 11.4 and 11-STABLE
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: o.hushchenkov at gmail.com
Created attachment 218140
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=218140&action=edit
Patch v1
Undefine major()/minor() from sys/types.h.
Reported and submitted by @kib via email.
This fixes name conflict:
In file included from ../src/gn/function_process_file_template_unittest.cc:6:
In file included from ../src/gn/test_with_scope.h:12:
In file included from ../src/gn/build_settings.h:21:
./src/gn/version.h:18:7: error: expected ')'
/usr/include/sys/types.h:372:42: note: expanded from macro 'major'
#define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
^
./src/gn/version.h:18:7: note: to match this '('
/usr/include/sys/types.h:372:24: note: expanded from macro 'major'
#define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
^
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list