summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comms/libopensync/distinfo3
-rw-r--r--comms/libopensync/patches/patch-ae17
2 files changed, 19 insertions, 1 deletions
diff --git a/comms/libopensync/distinfo b/comms/libopensync/distinfo
index 5f387dd6787..aec64d576d6 100644
--- a/comms/libopensync/distinfo
+++ b/comms/libopensync/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2007/12/11 13:35:37 yyamano Exp $
+$NetBSD: distinfo,v 1.4 2009/01/10 22:08:46 wiz Exp $
SHA1 (libopensync-0.22.tar.bz2) = 47860a8c6621aa89fbff2af2517787747af7cc30
RMD160 (libopensync-0.22.tar.bz2) = a1e9715d037a7c474b80d609e6c96a24cbb6692f
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = 353b17668c17e531343d280575beca707f4f643d
SHA1 (patch-ab) = 057f995d58c98eba96e22671d9c8ee0ec8270b3e
SHA1 (patch-ac) = f6a8c12e9344a7f68439b06f8797bfa30106d0e3
SHA1 (patch-ad) = 2020bdc4d4ed38e25c4376aefc4b81ed00a3a786
+SHA1 (patch-ae) = 39b5cf27a5b1722f5d8550b97deb1a8763a4ace1
diff --git a/comms/libopensync/patches/patch-ae b/comms/libopensync/patches/patch-ae
new file mode 100644
index 00000000000..82d0a5732ad
--- /dev/null
+++ b/comms/libopensync/patches/patch-ae
@@ -0,0 +1,17 @@
+$NetBSD: patch-ae,v 1.1 2009/01/10 22:08:46 wiz Exp $
+
+Fix compilation with Sun Studio, which does not provide __FUNCTION__.
+
+--- opensync/opensync_internals.h.orig 2007-03-27 13:49:18.000000000 +0200
++++ opensync/opensync_internals.h
+@@ -13,6 +13,10 @@
+ #include <errno.h>
+ extern int errno;
+
++#ifndef __FUNCTION__
++#define __FUNCTION__ __func__
++#endif
++
+ #define osync_assert(x) do { \
+ if (!(x)) { \
+ fprintf(stderr, "%s:%i:E:%s: Assertion \"" #x "\" failed\n", __FILE__, __LINE__, __FUNCTION__); \