freebsd-ports/devel/fam/files/patch-libfam__Client.c++
Matthias Andree 8151e37e93 - Fix build with libc++, dropping hardcoded -lstdc++ from the right Makefile.
- Fix build with clang, casting a large constant to int in mntent_compat.c++.
- Fix a noisy clang warning in BTree.h by parenthesizing the 2nd for() expr.
- Fix a format string mismatch (%d/size_t -> %lu/unsigned long) in snprintf.
- Regenerate patches, and normalize their filenames, with make makepatch.
- Bump PORTREVISION.
2014-01-03 01:45:45 +00:00

19 lines
589 B
C++

--- ./libfam/Client.c++.orig 2003-04-15 06:21:25.000000000 +0200
+++ ./libfam/Client.c++ 2014-01-03 02:35:10.000000000 +0100
@@ -34,7 +34,6 @@
#include <syslog.h>
#include <errno.h>
-#include <iostream.h>
#include "fam.h"
#include "Client.h"
@@ -264,7 +263,7 @@
{
char msg[100];
snprintf(msg, sizeof(msg),
- "change info too long! (%d max)", sizeof(changeInfo));
+ "change info too long! (%lu max)", (unsigned long)sizeof(changeInfo));
croakConnection(msg);
return -1;
}