openbsd-ports/devel/lam/patches/patch-config_cxx_have_bool_m4
2017-05-02 21:16:43 +00:00

15 lines
442 B
Plaintext

$OpenBSD: patch-config_cxx_have_bool_m4,v 1.1 2017/05/02 21:16:43 espie Exp $
Index: config/cxx_have_bool.m4
--- config/cxx_have_bool.m4.orig
+++ config/cxx_have_bool.m4
@@ -42,7 +42,7 @@ cat > conftest.cc <<EOF
#include <stdio.h>
#include <sys/types.h>
-int main(int argc, char* argv[]) {
+int main(int argc, char** argv) {
bool foo = (bool) 0;
printf("so foo is used and the compiler wont complain: %d", (int) foo);
return 0;