On Wed, May 02, 2012 at 02:37:21PM +0200, Christian Neukirchen wrote: > Hello, > > today I'm proud to release the first public version of portable cwm 5.1. > > Portable cwm is a minor modification of the cwm version in OpenBSD CVS > with a portable Makefile and a few compatibility features. It has > been built successfully on OpenBSD, NetBSD and Linux. > > This port requires pkg-config, Xft, Xinerama and Xrandr. The included > Makefile should work with both GNU make and BSD make. > > This version actively tracks changes in the OpenBSD CVS repository. > Releases are roughly coordinated. > > http://chneukirchen.org/releases/cwm-5.1.tar.gz > http://chneukirchen.org/releases/cwm-5.1.tar.gz.asc > > Enjoy,
Hi ! Thanks for the port, I had to tweak a bit to compile on an ancient ubuntu 8.04, you may want the YYSTYLE_IS_DECLARED at least. diff -dpru /tmp/cwm-5.1/client.c /home/haesbaert/src/cwm-5.1/client.c --- /tmp/cwm-5.1/client.c 2012-05-02 09:26:57.000000000 -0300 +++ /home/haesbaert/src/cwm-5.1/client.c 2012-05-04 10:40:56.000000000 -0300 @@ -24,6 +24,7 @@ #include <assert.h> #include <err.h> #include <errno.h> +#include <limits.h> #include <stdlib.h> #include <string.h> #include <stdio.h> Only in /home/haesbaert/src/cwm-5.1: cscope.files Only in /home/haesbaert/src/cwm-5.1: cscope.out diff -dpru /tmp/cwm-5.1/parse.y /home/haesbaert/src/cwm-5.1/parse.y --- /tmp/cwm-5.1/parse.y 2012-05-02 09:26:57.000000000 -0300 +++ /home/haesbaert/src/cwm-5.1/parse.y 2012-05-04 10:47:41.000000000 -0300 @@ -21,6 +21,8 @@ %{ +#define _GNU_SOURCE + #include <sys/param.h> #include <sys/queue.h> @@ -35,6 +37,8 @@ #include "calmwm.h" +#define YYSTYPE_IS_DECLARED + TAILQ_HEAD(files, file) files = TAILQ_HEAD_INITIALIZER(files); static struct file { TAILQ_ENTRY(file) entry; diff -dpru /tmp/cwm-5.1/strtonum.c /home/haesbaert/src/cwm-5.1/strtonum.c --- /tmp/cwm-5.1/strtonum.c 2012-05-02 09:26:57.000000000 -0300 +++ /home/haesbaert/src/cwm-5.1/strtonum.c 2012-05-04 10:46:26.000000000 -0300 @@ -21,8 +21,10 @@ #ifndef HAVE_STRTONUM #include <stdlib.h> -#include <limits.h> #include <errno.h> +#define __USE_ISOC99 +#include <limits.h> + #define INVALID 1 #define TOOSMALL 2