freebsd-ports/devel/android-tools-simpleperf/files/patch-base_logging.cpp
Jan Beich 6901fe718a devel/android-tools-simpleperf: add new port
simpleperf is a minimal Linux perf implementation for extracting
sampling information out of perf.data.
2015-08-14 00:13:13 +00:00

18 lines
462 B
C++

--- base/logging.cpp.orig 2015-08-12 23:28:08 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>