Skip to content

Commit

Permalink
[android] module map: address finagolfin's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp committed May 7, 2024
1 parent f5e6930 commit d604f05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stdlib/public/Platform/SwiftAndroidNDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@

#include <arpa/inet.h>
#include <linux/if.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in6.h>

Expand All @@ -115,10 +116,17 @@
#include <sys/msg.h>
#include <sys/random.h>
#include <sys/resource.h>
#include <sys/select.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/types.h>
#include <sys/un.h>
#include <sys/user.h>
#include <sys/utsname.h>
#include <sys/wait.h>

#include <android/api-level.h>
#include <android/asset_manager_jni.h>
Expand Down
4 changes: 4 additions & 0 deletions stdlib/public/Platform/android.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ module inet [system] {
header "arpa/inet.h"
export *
}
explicit module net_if {
header "net/if.h"
export *
}
explicit module netinet_in {
header "netinet/in.h"
export *
Expand Down

0 comments on commit d604f05

Please sign in to comment.