$NetBSD: patch-at,v 1.2 2009/01/13 13:23:38 wiz Exp $

--- addressbook/libebook/e-book.c.orig	2008-11-07 05:34:23.000000000 +0100
+++ addressbook/libebook/e-book.c
@@ -22,6 +22,10 @@
 
 #define d(x)
 
+#if !defined(__GNUC__) && !defined(__FUNCTION__)
+#define __FUNCTION__ __func__
+#endif
+
 GMainContext *_ebook_context;
 
 static GObjectClass *parent_class;
