Move relocation_packer off libnativehelper.
Also remove other bits of makefile cruft.
Change-Id: I8b69822200959368003a8af9d1595bea9182d6d8
diff --git a/tools/relocation_packer/src/main.cc b/tools/relocation_packer/src/main.cc
index 8e9de6d..d0a0dd4 100644
--- a/tools/relocation_packer/src/main.cc
+++ b/tools/relocation_packer/src/main.cc
@@ -25,7 +25,7 @@
#include "elf_traits.h"
#include "libelf.h"
-#include "nativehelper/ScopedFd.h"
+#include <android-base/unique_fd.h>
static void PrintUsage(const char* argv0) {
std::string temporary = argv0;
@@ -94,7 +94,7 @@
}
const char* file = argv[argc - 1];
- ScopedFd fd(open(file, O_RDWR));
+ android::base::unique_fd fd(open(file, O_RDWR));
if (fd.get() == -1) {
LOG(ERROR) << file << ": " << strerror(errno);
return 1;