aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libnfs/Makefile1
-rw-r--r--lib/libnfs/printf.patch12
-rw-r--r--tools/darwin/depends/libnfs/Makefile1
-rw-r--r--tools/darwin/depends/libnfs/printf.patch12
4 files changed, 26 insertions, 0 deletions
diff --git a/lib/libnfs/Makefile b/lib/libnfs/Makefile
index db9a6fb4d5..9a7d706fa1 100644
--- a/lib/libnfs/Makefile
+++ b/lib/libnfs/Makefile
@@ -35,6 +35,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE);autoreconf -vif;$(CONFIGURE)
+ cd $(SOURCE); patch -p0 < ../printf.patch
$(SO_NAME): $(SOURCE)
make -C $(SOURCE)
diff --git a/lib/libnfs/printf.patch b/lib/libnfs/printf.patch
new file mode 100644
index 0000000000..2cdf264c6c
--- /dev/null
+++ b/lib/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;
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;