r4058 - in trunk/varnish-cache: include/compat lib/libvarnishcompat
phk at projects.linpro.no
phk at projects.linpro.no
Sat May 9 17:49:19 CEST 2009
Author: phk
Date: 2009-05-09 17:49:19 +0200 (Sat, 09 May 2009)
New Revision: 4058
Added:
trunk/varnish-cache/include/compat/execinfo.h
Modified:
trunk/varnish-cache/lib/libvarnishcompat/execinfo.c
Log:
Also remember compat execinfo.h file.
Added: trunk/varnish-cache/include/compat/execinfo.h
===================================================================
--- trunk/varnish-cache/include/compat/execinfo.h (rev 0)
+++ trunk/varnish-cache/include/compat/execinfo.h 2009-05-09 15:49:19 UTC (rev 4058)
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2003 Maxim Sobolev <sobomax at FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $Id: execinfo.h,v 1.2 2004/07/19 05:20:29 sobomax Exp $
+ */
+
+#ifndef COMPAT_EXECINFO_H_INCLUDED
+#define COMPAT_EXECINFO_H_INCLUDED
+
+#ifndef HAVE_EXECINFO_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int backtrace(void **, int);
+char ** backtrace_symbols(void *const *, int);
+void backtrace_symbols_fd(void *const *, int, int);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
+
+#endif /* COMPAT_EXECINFO_H_INCLUDED */
Modified: trunk/varnish-cache/lib/libvarnishcompat/execinfo.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishcompat/execinfo.c 2009-05-09 15:46:42 UTC (rev 4057)
+++ trunk/varnish-cache/lib/libvarnishcompat/execinfo.c 2009-05-09 15:49:19 UTC (rev 4058)
@@ -36,7 +36,7 @@
#include <string.h>
#include <unistd.h>
-#include "execinfo.h"
+#include "compat/execinfo.h"
void *getreturnaddr(int);
void *getframeaddr(int);
More information about the varnish-commit
mailing list