summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-09-03 06:11:40 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-09-03 06:11:40 +0800
commit175721e609a4a1567e655e63dc33b9081aba407d (patch)
tree9bfbe1e965126ec88ffea303c00369bc8963d22c
parentb89c3783e6595c94c1ea5fbeeaf881340c6813ce (diff)
downloadmarcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.tar
marcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.tar.gz
marcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.tar.bz2
marcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.tar.lz
marcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.tar.xz
marcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.tar.zst
marcuscom-ports-175721e609a4a1567e655e63dc33b9081aba407d.zip
More build fixes for FreeBSD.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9504 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--devel/bug-buddy/files/patch-gnome-breakpad_gnome-breakpad.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/bug-buddy/files/patch-gnome-breakpad_gnome-breakpad.cc b/devel/bug-buddy/files/patch-gnome-breakpad_gnome-breakpad.cc
new file mode 100644
index 000000000..6fad09b68
--- /dev/null
+++ b/devel/bug-buddy/files/patch-gnome-breakpad_gnome-breakpad.cc
@@ -0,0 +1,35 @@
+--- gnome-breakpad/gnome-breakpad.cc.orig 2007-09-02 18:02:43.000000000 -0400
++++ gnome-breakpad/gnome-breakpad.cc 2007-09-02 18:10:08.000000000 -0400
+@@ -6,8 +6,14 @@
+ #include <cassert>
+ #include <cstring>
+
++#ifdef __FreeBSD__
++#include <sys/param.h>
++#endif
++
++#if !defined(__FreeBSD__) || __FreeBSD_version > 700024
+ #include <libelf.h>
+ #include <gelf.h>
++#endif
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -269,9 +275,17 @@ check_if_gdb (void *callback_context)
+ _exit(0);
+ }
+
++#if !defined(__FreeBSD__) || __FreeBSD_version > 700024
+ memset(mypath, 0, sizeof(mypath));
++#ifndef __FreeBSD__
+ readlink ("/proc/self/exe", mypath, sizeof(mypath));
++#else
++ readlink ("/proc/curproc/file", mypath, sizeof(mypath));
++#endif
+ has_debug_symbols = elf_has_debug_symbols (mypath);
++#else
++ has_debug_symbols = TRUE;
++#endif
+
+
+ if (bugbuddy && gdb && has_debug_symbols) {