aboutsummaryrefslogtreecommitdiffstats
path: root/devel/android-tools-fastboot-devel/files/patch-base_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/android-tools-fastboot-devel/files/patch-base_file.cpp')
-rw-r--r--devel/android-tools-fastboot-devel/files/patch-base_file.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/devel/android-tools-fastboot-devel/files/patch-base_file.cpp b/devel/android-tools-fastboot-devel/files/patch-base_file.cpp
index 199da0b95aca..a0406b97b605 100644
--- a/devel/android-tools-fastboot-devel/files/patch-base_file.cpp
+++ b/devel/android-tools-fastboot-devel/files/patch-base_file.cpp
@@ -1,16 +1,17 @@
---- base/file.cpp.orig 2016-09-28 18:07:09 UTC
+--- base/file.cpp.orig 2017-06-20 10:50:27 UTC
+++ base/file.cpp
-@@ -18,6 +18,9 @@
-
+@@ -19,6 +19,10 @@
#include <errno.h>
#include <fcntl.h>
+ #include <libgen.h>
+#include <limits.h> // PATH_MAX
+#include <stdio.h> // BUFSIZ
++#include <stdlib.h> // realpath
+#include <string.h> // strerror
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-@@ -34,6 +37,9 @@
+@@ -36,6 +39,9 @@
#if defined(__APPLE__)
#include <mach-o/dyld.h>
#endif
@@ -19,8 +20,8 @@
+#endif
#if defined(_WIN32)
#include <windows.h>
- #endif
-@@ -231,6 +237,17 @@ std::string GetExecutablePath() {
+ #define O_CLOEXEC O_NOINHERIT
+@@ -251,6 +257,17 @@ std::string GetExecutablePath() {
if (result == 0 || result == sizeof(path) - 1) return "";
path[PATH_MAX - 1] = 0;
return path;