Fix the build on RHEL5, when libcap-devel is installed.
authorMichael Adam <obnox@samba.org>
Thu, 15 Nov 2007 23:45:44 +0000 (00:45 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 15 Nov 2007 23:45:59 +0000 (00:45 +0100)
commit11bcdf780e164659b89a66e24edc27e89da7619a
tree582ee390d64248ba10cb707c87c6fafa6e0366d3
parent4ab3b23a630e822e3fdf1ab4d08330625b0e4fb6
Fix the build on RHEL5, when libcap-devel is installed.

The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c.

This commit adds a configure check and a workaround for this.

Michael
source/configure.in
source/lib/replace/system/capability.h