Skip to content

Commit aee4e9d

Browse files
committed
Use local copy of vm_sockets.h on non-Trusty for portability
This uses binder's copy of the vm_sockets.h header for the definition of vsock types and constants. This header is more portable as it works on non-bionic based Linux systems and non-Linux systems that use compatible types and constants. Change-Id: I95171de08726754578ba00b4fb19524b9140afdb
1 parent a92a88f commit aee4e9d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

libs/binder/libbinder_rpc_unstable.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@
2323

2424
#ifndef __TRUSTY__
2525
#include <cutils/sockets.h>
26-
#endif
27-
28-
#ifdef __linux__
29-
#include <linux/vm_sockets.h>
30-
#endif // __linux__
26+
#include "vm_sockets.h"
27+
#endif // !__TRUSTY__
3128

3229
using android::OK;
3330
using android::RpcServer;

0 commit comments

Comments
 (0)