diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2009-12-07 22:00:26 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2009-12-07 22:00:26 +0000 |
commit | 59b74c075b55a2b3185c2ed3b88b778244a31f6c (patch) | |
tree | 18ac5ba557bb409b702752965b4a74f604d505dd /lang/gcl/files/patch-h_FreeBSD.h | |
parent | Add libltdl dependency, that somehow missed in the previous commit (diff) |
Let the healing begin by unbreaking. The main thing was to set DBEGIN to
0 as seems to happen with the upcoming version 2.6.8 (not released yet).
Add minor patches to ensure clean build with `-Wall -Werror',
proper definition of HZ, etc.
Instead of explicitly specifying LIB_DEPENDS, convert to USE_TK. Leave the
TCL_VER at 8.4 for now.
Gentoo builds theirs for various platforms -- not just i386 -- so that would
be the next step.
Diffstat (limited to 'lang/gcl/files/patch-h_FreeBSD.h')
-rw-r--r-- | lang/gcl/files/patch-h_FreeBSD.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lang/gcl/files/patch-h_FreeBSD.h b/lang/gcl/files/patch-h_FreeBSD.h index cd19f8d4630c..3c3ab6388e6f 100644 --- a/lang/gcl/files/patch-h_FreeBSD.h +++ b/lang/gcl/files/patch-h_FreeBSD.h @@ -1,10 +1,5 @@ -Index: h/FreeBSD.h -=================================================================== -RCS file: /cvsroot/gcl/gcl/h/FreeBSD.h,v -retrieving revision 1.2.6.2.2.2 -diff -u -d -r1.2.6.2.2.2 FreeBSD.h ---- h/FreeBSD.h 12 Jun 2004 16:28:15 -0000 1.2.6.2.2.2 -+++ h/FreeBSD.h 18 Aug 2004 16:29:43 -0000 +--- h/FreeBSD.h 2004-06-12 12:28:15.000000000 -0400 ++++ h/FreeBSD.h 2009-12-07 12:07:37.000000000 -0500 @@ -32,6 +32,11 @@ #endif #include "linux.h" @@ -17,3 +12,16 @@ diff -u -d -r1.2.6.2.2.2 FreeBSD.h #if defined(__i386__) #define I386 #endif +@@ -68,7 +73,11 @@ + #ifdef CLOCKS_PER_SEC + #define HZ CLOCKS_PER_SEC + #else +-#define HZ 128 ++# ifdef _SC_CLK_TCK /* Define HZ properly: */ ++# define HZ sysconf(_SC_CLK_TCK) ++# elif !defined(HZ) ++# define HZ 128 ++# endif + #endif + /* #define ss_base ss_sp */ + |