r26255: Work around another broken aspect of sys/capability.h on RHEL5.
authorMichael Adam <obnox@samba.org>
Mon, 3 Dec 2007 15:46:45 +0000 (16:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:47:30 +0000 (05:47 +0100)
commitcbdad76b0d6b893a26c5dc20def034149fb3aa97
tree36c7aa106448b2d48b888adb634e831c81f48afd
parentb08a82de587afdd561d55580957fec7cbeb2e43f
r26255: Work around another broken aspect of sys/capability.h on RHEL5.

This is synced from samba3 v3-2-test/11bcdf780e164659b89:

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 in Samba3.

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

Michael
(This used to be commit df3e151992f0b942554034dd143ab8d7f0d7a75b)
source4/lib/replace/system/capability.h
source4/lib/replace/system/config.m4