Subject: | FreeBSD compilation problem |
Including error.h in FreeBSD 6.x is an error. In former FreeBSD versions
it was just a warning. The attached patch changes the malloc.h include
to stdlib.h. I suspect that other BSDs should also be covered (APPLE
already is).
And now I have a modern computer with OpenGL enabled I can see the
tk-zinc port of my tetris implementation in full beauty :-)
Regards,
Slaven
Subject: | tk-zinc-malloch.patch |
#
#
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####
#### Patch data follows ####
diff -up 'build/tk-zinc-3.303/OverlapMan.c' 'new.build/tk-zinc-3.303/OverlapMan.c'
Index: ./OverlapMan.c
Prereq: 1.26
--- ./OverlapMan.c Sat Apr 1 18:09:43 2006
+++ ./OverlapMan.c Sat Sep 9 21:44:38 2006
@@ -29,7 +29,7 @@ static const char compile_id[]="$Compile
#include "OverlapMan.h"
-#if defined(__APPLE__)
+#if defined(__APPLE__) || __FreeBSD__ > 3
#include <stdlib.h>
#else
#include "malloc.h"
#### End of Patch data ####
#### ApplyPatch data follows ####
# Data version : 1.0
# Date generated : Sat Sep 9 22:30:58 2006
# Generated by : makepatch 2.00_12*
# Recurse directories : Yes
# Excluded files : (\A|/).*\~\Z
# (\A|/).*\.a\Z
# (\A|/).*\.bak\Z
# (\A|/).*\.BAK\Z
# (\A|/).*\.elc\Z
# (\A|/).*\.exe\Z
# (\A|/).*\.gz\Z
# (\A|/).*\.ln\Z
# (\A|/).*\.o\Z
# (\A|/).*\.obj\Z
# (\A|/).*\.olb\Z
# (\A|/).*\.old\Z
# (\A|/).*\.orig\Z
# (\A|/).*\.rej\Z
# (\A|/).*\.so\Z
# (\A|/).*\.Z\Z
# (\A|/)\.del\-.*\Z
# (\A|/)\.make\.state\Z
# (\A|/)\.nse_depinfo\Z
# (\A|/)core\Z
# (\A|/)tags\Z
# (\A|/)TAGS\Z
# p 'OverlapMan.c' 29986 1157831078 0100640
#### End of ApplyPatch data ####
#### End of Patch kit [created: Sat Sep 9 22:30:58 2006] ####
#### Patch checksum: 48 1667 35158 ####
#### Checksum: 66 2291 21160 ####