3658. [port] linux: Address platform specific compilation issue

when libcap-devel is installed. [RT #34838]

(cherry picked from commit 7433a204d3)
(cherry picked from commit 9b7d05c900)
This commit is contained in:
Mark Andrews
2013-09-26 15:26:43 +10:00
parent e3f0a6a347
commit 3f00a920fa
4 changed files with 24 additions and 9 deletions

View File

@@ -117,12 +117,12 @@ static int dfd[2] = { -1, -1 };
static isc_boolean_t non_root = ISC_FALSE;
static isc_boolean_t non_root_caps = ISC_FALSE;
#ifdef HAVE_LINUX_TYPES_H
#include <linux/types.h>
#endif
#ifdef HAVE_SYS_CAPABILITY_H
#include <sys/capability.h>
#else
#ifdef HAVE_LINUX_TYPES_H
#include <linux/types.h>
#endif
/*%
* We define _LINUX_FS_H to prevent it from being included. We don't need
* anything from it, and the files it includes cause warnings with 2.2