See Jan Andersen's bug report about AIX 5L in
http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
* m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
* lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
* lib/priv-set.h: Likewise.
* tests/test-priv-set.c: Likewise.
+2010-06-14 Paul Eggert <eggert@cs.ucla.edu>
+
+ priv-set: Don't assume that priv.h exists merely because getppriv does.
+ See Jan Andersen's bug report about AIX 5L in
+ http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
+ * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
+ * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
+ * lib/priv-set.h: Likewise.
+ * tests/test-priv-set.c: Likewise.
+
2010-06-13 Bruno Haible <bruno@clisp.org>
relocatable: Make it easier to test whether to install wrappers.
#include <config.h>
#include "priv-set.h"
-#if HAVE_GETPPRIV
+#if HAVE_GETPPRIV && HAVE_PRIV_H
# include <errno.h>
# include <stdbool.h>
Written by David Bartley. */
-#if HAVE_GETPPRIV
+#if HAVE_GETPPRIV && HAVE_PRIV_H
# include <priv.h>
-# serial 6
+# serial 7
# Copyright (C) 2009, 2010 Free Software Foundation, Inc.
#
[
AC_REQUIRE([AC_C_INLINE])
AC_CHECK_FUNCS([getppriv])
+ AC_CHECK_HEADERS_ONCE([priv.h])
])
#include "priv-set.h"
-#if HAVE_GETPPRIV
+#if HAVE_GETPPRIV && HAVE_PRIV_H
# include <priv.h>
#endif
#include <unistd.h>
int
main (void)
{
-#if HAVE_GETPPRIV
+#if HAVE_GETPPRIV && HAVE_PRIV_H
priv_set_t *set;
ASSERT (set = priv_allocset ());