summaryrefslogtreecommitdiff
path: root/comms/libopensync/patches
diff options
context:
space:
mode:
authorwiz <wiz>2009-01-10 22:08:46 +0000
committerwiz <wiz>2009-01-10 22:08:46 +0000
commit34a3c5f7d6ddbcc765a884eebd1052fff4b95ca6 (patch)
tree8eae2b458149dcb633729341e97e91145f9b945d /comms/libopensync/patches
parent180f5211f950e924e95b178df7ff00a1cc430329 (diff)
downloadpkgsrc-34a3c5f7d6ddbcc765a884eebd1052fff4b95ca6.tar.gz
Fix build with Sun Studio, which does not provide __FUNCTION__.
From Daniel Vergien on pkgsrc-users.
Diffstat (limited to 'comms/libopensync/patches')
-rw-r--r--comms/libopensync/patches/patch-ae17
1 files changed, 17 insertions, 0 deletions
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__); \