pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/libopensync Fix build with Sun Studio, which doe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f362b0a2b4c
branches:  trunk
changeset: 552848:8f362b0a2b4c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 10 22:08:46 2009 +0000

description:
Fix build with Sun Studio, which does not provide __FUNCTION__.

>From Daniel Vergien on pkgsrc-users.

diffstat:

 comms/libopensync/distinfo         |   3 ++-
 comms/libopensync/patches/patch-ae |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r c1d516e8e48d -r 8f362b0a2b4c comms/libopensync/distinfo
--- a/comms/libopensync/distinfo        Sat Jan 10 21:48:51 2009 +0000
+++ b/comms/libopensync/distinfo        Sat Jan 10 22:08:46 2009 +0000
@@ -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-ab) = 057f995d58c98eba96e22671d9c8ee0ec8270b3e
 SHA1 (patch-ac) = f6a8c12e9344a7f68439b06f8797bfa30106d0e3
 SHA1 (patch-ad) = 2020bdc4d4ed38e25c4376aefc4b81ed00a3a786
+SHA1 (patch-ae) = 39b5cf27a5b1722f5d8550b97deb1a8763a4ace1
diff -r c1d516e8e48d -r 8f362b0a2b4c comms/libopensync/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/libopensync/patches/patch-ae        Sat Jan 10 22:08:46 2009 +0000
@@ -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__); \



Home | Main Index | Thread Index | Old Index