opnsense-ports/devel/android-tools-adb/files/patch-base_logging.cpp
Franco Fichtner cf63a90312 */*: sync with upstream
Taken from: FreeBSD
2015-10-10 13:58:59 +02:00

18 lines
462 B
C++

--- base/logging.cpp.orig 2015-06-17 22:20:38 UTC
+++ base/logging.cpp
@@ -23,12 +23,14 @@
#include <libgen.h>
// For getprogname(3) or program_invocation_short_name.
-#if defined(__ANDROID__) || defined(__APPLE__)
+#if !defined(_WIN32) && !defined(__GLIBC__)
#include <stdlib.h>
#elif defined(__GLIBC__)
#include <errno.h>
#endif
+#include <cstring> // strlen
+#include <cstdio> // fprintf
#include <iostream>
#include <limits>
#include <sstream>