File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,8 @@ module posix_filesystem [system] {
178178 }
179179 explicit module fcntl {
180180 header "fcntl.h"
181- export *
181+ // Note: Do not re-export imported modules
182+ // to prevent exporting constants from linux/stat.h .
182183 }
183184 explicit module fnmatch {
184185 header "fnmatch.h"
@@ -228,6 +229,10 @@ module posix_filesystem [system] {
228229 header "bits/ioctl.h"
229230 export *
230231 }
232+ explicit module linux_stat {
233+ private header "linux/stat.h"
234+ export *
235+ }
231236 explicit module sys_epoll {
232237 header "sys/epoll.h"
233238 export *
@@ -262,7 +267,8 @@ module posix_filesystem [system] {
262267 }
263268 explicit module sys_stat {
264269 header "sys/stat.h"
265- export *
270+ // Note: Do not re-export imported modules
271+ // to prevent exporting constants from linux/stat.h .
266272 }
267273 explicit module sys_statvfs {
268274 header "sys/statvfs.h"
You can’t perform that action at this time.
0 commit comments