This is a patch to 0.18 to add support for OpenBSD
(3.7, may not work with earlier versions) as well as to
fix a memory leak in the swap routine of the NetBSD
code on which this is based.
Patch is not working under OpenBSD 3.8.
First configure throws out, that system is not supported,
after adding:
OpenBSD*)
WANT_KVM=yes
WANT_OSSLIB=yes
;;
and
if test x$uname = xOpenBSD; then
BUILD_OPENBSD_TRUE=
BUILD_OPENBSD_FALSE='#'
else
BUILD_OPENBSD_TRUE='#'
BUILD_OPENBSD_FALSE=
fi
configure works fine.
But (there's always some but ;-)) 'make' is failing becouse
of 'undefined references' in torsmo.c.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The patch only includes the patches to Makefile.am and configure.in, so
you have to run aclocal, automake and autoconf before running
configure. Also, you'll have to manually set CFLAGS and CPPFLAGS to
include /usr/X11R6/include, because otherwise configure will not find the
X headers needed for double-buffer. I'm not entirely sure why - I don't
particularly know how to use the configure tools.
0.18 OpenBSD patch
Logged In: YES
user_id=44354
Oh, I tried to patch against the CVS version but there
appear to be linuxisms in net.c that weren't there before.
Logged In: NO
Patch is not working under OpenBSD 3.8.
First configure throws out, that system is not supported,
after adding:
OpenBSD*)
WANT_KVM=yes
WANT_OSSLIB=yes
;;
and
if test x$uname = xOpenBSD; then
BUILD_OPENBSD_TRUE=
BUILD_OPENBSD_FALSE='#'
else
BUILD_OPENBSD_TRUE='#'
BUILD_OPENBSD_FALSE=
fi
configure works fine.
But (there's always some but ;-)) 'make' is failing becouse
of 'undefined references' in torsmo.c.
Logged In: YES
user_id=44354
The patch only includes the patches to Makefile.am and configure.in, so
you have to run aclocal, automake and autoconf before running
configure. Also, you'll have to manually set CFLAGS and CPPFLAGS to
include /usr/X11R6/include, because otherwise configure will not find the
X headers needed for double-buffer. I'm not entirely sure why - I don't
particularly know how to use the configure tools.
CFLAGS="-I/usr/X11R6/include -O2" CPPFLAGS="-I/usr/X11R6/
include" ./configure