openbsd-ports/devel/glog/patches/patch-src_logging_cc
landry beea239526 Import glog-0.3.0:
The glog library implements application-level logging. This library
provides logging APIs based on C++-style streams and various helper
macros.
From MAINTAINER Vicent Auclair (thanks!) @ ACSEL and a few tweaks by me
2009-12-31 15:48:59 +00:00

14 lines
599 B
Plaintext

$OpenBSD: patch-src_logging_cc,v 1.1.1.1 2009/12/31 15:48:59 landry Exp $
http://code.google.com/p/google-glog/issues/detail?id=13
--- src/logging.cc.orig Thu Dec 31 15:31:16 2009
+++ src/logging.cc Thu Dec 31 15:32:14 2009
@@ -1755,7 +1755,7 @@ int posix_strerror_r(int err, char *buf, size_t len) {
} else {
buf[0] = '\000';
#if defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
- if (reinterpret_cast<int>(rc) < sys_nerr) {
+ if (reinterpret_cast<intptr_t>(rc) < sys_nerr) {
// This means an error on MacOSX or FreeBSD.
return -1;
}