On Sat, 27 Dec 2008 16:54:53 +0100, Jack Woehr <[email protected]> wrote:
But it doesn't build on OpenBSD:
$ gmake CC=gcc
ctags fm.c fs.c ui.c cmd.c fm.h
gcc -g -Wall -pedantic -ansi $(pkg-config --cflags glib-2.0) -c -o
fm.o fm.c
fm.c: In function `set_sighandlers':
fm.c:60: error: `SIGWINCH' undeclared (first use in this function)
fm.c:60: error: (Each undeclared identifier is reported only once
fm.c:60: error: for each function it appears in.)
fm.c: In function `unset_sighandlers':
fm.c:73: error: `SIGWINCH' undeclared (first use in this function)
gmake: *** [fm.o] Error 1
which is kind of weird because even if I specifically #include
<sys/signal.h>
in which `SIGWINCH' is declared it doesn't find it. Haven't had time yet
to dig in deep.
At this moment I don't have OpenBSD installed to try it. But I removed
the -ansi and -pedantic flags from the published code because they are
too strict for the casual user and they can cause too much trouble.
CFLAGS = -O2 -Wall $$(pkg-config --cflags glib-2.0)
LDFLAGS = -s -lncurses $$(pkg-config --libs glib-2.0)
--
Ricardo