Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+17
View File
@@ -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__); \