Fix build errors under FreeBSD
authorAlexander Graf <agraf@znc.in>
Fri, 28 May 2010 14:53:13 +0000 (16:53 +0200)
committerAlexander Graf <agraf@znc.in>
Fri, 28 May 2010 19:41:38 +0000 (21:41 +0200)
commita44b3c3f474f5abbf2a4fbff2ac3da1d8a48959c
tree882eb2a65d2626e8c79c1dadcc43af62a3c4467b
parent8564ff6610cf5ed060e6dd206ad9878e96d98130
Fix build errors under FreeBSD

Makefile.am:  top.c was enlisted as Linux-only source, though it is
required for conky on every operating system.

conky.[ch]:  top_running definition was inside #ifdef __linux__, though
required by top.c on every operating system.

freebsd.c:  Change return type of update_*() to int, as required by
common.h; remove free_all_processes() as it is defined by top.c.  The
changes done to freebsd.c must be done to netbsd.c and openbsd.c, too.
I did not do it as I have no opportunity to test conky under NetBSD or
OpenBSD.

Signed-off-by: Alexander Graf <agraf@znc.in>
src/Makefile.am
src/conky.c
src/conky.h
src/freebsd.c