[gtkada] FreeBSD 5 and GtkAda-2.2.0/src/gtkextra/gtkplotdt.c
T. Kurt Bond
tkb at tkb.mpl.com
Sat Jul 12 05:50:10 CEST 2003
Under FreeBSD 5 (specifically 5.1, but it from CVS it looks like it's
been that way since before the release of 5.0), if __STDC__ is
defined <malloc.h> uses #error to cause compilation to die with the
error message
<malloc.h> has been replaced by <stdlib.h>
and __STDC__ is defined by default.
Wrapping the #include <malloc.h> with "#if !(defined (__FreeBSD__) &&
(__FreeBSD__ >= 5)" and an "#endif" fixes the problem.
Here's a patch; cd to GtkAda-2.2.0/src/gtkextra/ and
patch -p1 <gtkplotdt-freebsd5.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkplotdt-freebsd5.patch
Type: application/octet-stream
Size: 390 bytes
Desc: Patch GtkAda-2.2.0/src/gtkextra/gtkplotdt.c for FreeBSD 5
Url : /pipermail/gtkada/attachments/20030711/502c4894/attachment.obj
-------------- next part --------------
--
T. Kurt Bond, tkb at tkb.mpl.com
More information about the gtkada
mailing list