Skip to content

Commit 22817cc

Browse files
committed
Platform: add sys_xattr module for Android
This module was left out from the modulariation pass. The declarations here are required for building swift-foundation for Android.
1 parent fb0a1b9 commit 22817cc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

stdlib/public/Platform/SwiftAndroidNDK.h

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
#include <sys/user.h>
144144
#include <sys/utsname.h>
145145
#include <sys/wait.h>
146+
#include <sys/xattr.h>
146147

147148
#include <android/api-level.h>
148149
#include <android/asset_manager_jni.h>

stdlib/public/Platform/android.modulemap

+4
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ module posix_filesystem [system] {
282282
header "sys/uio.h"
283283
export *
284284
}
285+
explicit module sys_xattr {
286+
header "sys/xattr.h"
287+
export *
288+
}
285289
}
286290

287291
module dl [system] {

0 commit comments

Comments
 (0)