build-sys: provide alternatives for err, errx, warn and warnx

Solaris lacks err, errx, warn and warnx.  This also means the err.h header
doesn't exist.  Removed err.h include from all files, and included err.h from
c.h instead if it exists, otherwise alternatives are provided.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Fabian Groffen 2011-01-25 22:44:52 +01:00 committed by Karel Zak
parent 4a01477b12
commit eb76ca98b0
52 changed files with 84 additions and 52 deletions

View file

@ -11,7 +11,6 @@
#define UTIL_LINUX_XALLOC_H
#include <stdlib.h>
#include <err.h>
#include <string.h>
#include "c.h"