1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- Fix build on FreeBSD 8.0

Submitted by:	maintainer
This commit is contained in:
Pav Lucistnik 2010-10-13 12:44:24 +00:00
parent b3a8e5a4f0
commit 7d0ccdc734
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262958
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- src/help.cc.orig 2010-10-11 22:21:22.000000000 +0200
+++ src/help.cc 2010-10-11 22:35:32.000000000 +0200
@@ -748,7 +748,10 @@
return s=="index.htm";
}
#else
-#if defined(__APPLE__) // || defined(__FreeBSD__)
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+#if defined(__APPLE__) || (defined(__FreeBSD_version) && (__FreeBSD_version < 800501))
static int dir_select (struct dirent *d){
#else
static int dir_select (const struct dirent *d){

View File

@ -0,0 +1,14 @@
--- src/rpn.cc.orig 2010-10-11 22:21:12.000000000 +0200
+++ src/rpn.cc 2010-10-11 22:07:07.000000000 +0200
@@ -530,7 +530,10 @@
gen symb_VARS(const gen & a){
return symbolic(at_VARS,a);
}
-#if defined(__APPLE__) // || defined(__FreeBSD__)
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+#if defined(__APPLE__) || (defined(__FreeBSD_version) && (__FreeBSD_version < 800501))
static int int_one (struct dirent *unused){
#else
static int int_one (const struct dirent *unused){