aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/depends
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2011-06-13 15:40:52 +0200
committerMemphiz <memphis@machzwo.de>2011-06-13 15:40:52 +0200
commit7d32b14d1d301dd369c08c4ba3396e610fcc13a3 (patch)
tree479bdf508c3cce5f991a7f2062f2df0897b547d5 /tools/darwin/depends
parente8a1f308272b8be6d4ba79dae058430524769058 (diff)
[libnfs] - stop syslog spamming of libnfs
Diffstat (limited to 'tools/darwin/depends')
-rw-r--r--tools/darwin/depends/libnfs/Makefile1
-rw-r--r--tools/darwin/depends/libnfs/printf.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/darwin/depends/libnfs/Makefile b/tools/darwin/depends/libnfs/Makefile
index 62e89b24a6..ce2ec98441 100644
--- a/tools/darwin/depends/libnfs/Makefile
+++ b/tools/darwin/depends/libnfs/Makefile
@@ -30,6 +30,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
install -c -m 644 $(RPC_HEADERS) $(PREFIX)/include/rpc/
cd $(SOURCE); ./autogen.sh
cd $(SOURCE); $(CONFIGURE)
+ cd $(SOURCE); patch -p0 < ../printf.patch
$(LIBDYLIB): $(SOURCE)
make -C $(SOURCE)
diff --git a/tools/darwin/depends/libnfs/printf.patch b/tools/darwin/depends/libnfs/printf.patch
new file mode 100644
index 0000000000..2cdf264c6c
--- /dev/null
+++ b/tools/darwin/depends/libnfs/printf.patch
@@ -0,0 +1,12 @@
+--- lib/libnfs-sync.c 2011-06-11 01:23:58.000000000 +0200
++++ lib/libnfs-sync.c 2011-06-13 15:04:59.000000000 +0200
+@@ -34,6 +34,9 @@
+ #include "libnfs-raw-mount.h"
+ #include "libnfs-raw-nfs.h"
+
++#undef printf
++int printf(const char* str, ...){return 0;}
++
+ struct sync_cb_data {
+ int is_finished;
+ int status;