]> Savannah Git Hosting - gnulib.git/commitdiff
selinux-h: port to PGI 16.10
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Feb 2017 16:46:05 +0000 (08:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Feb 2017 16:52:00 +0000 (08:52 -0800)
* lib/se-selinux.in.h: Don't assume that include_next skips over
duplicate -I DIR options.

ChangeLog
lib/se-selinux.in.h

index bb5e75cbc38c937ca6a781c56b75354fc2837bf4..5b52789672f6b7d9b5909c12574fa38193df9b98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
 
+       selinux-h: port to PGI 16.10
+       * lib/se-selinux.in.h: Don't assume that include_next skips over
+       duplicate -I DIR options.
+
        argp: port to PGI 16.10
        * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
 
index cd1995164b7b4a8e2e17970d7406f073ff955091..1cf7c00ea3fcbc1e716c17343c7b9dccd375c0ba 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef _@GUARD_PREFIX@_SELINUX_SELINUX_H
-# define _@GUARD_PREFIX@_SELINUX_SELINUX_H
-
-# if __GNUC__ >= 3
+#if __GNUC__ >= 3
 @PRAGMA_SYSTEM_HEADER@
-# endif
+#endif
 @PRAGMA_COLUMNS@
 
-# if HAVE_SELINUX_SELINUX_H
+#if HAVE_SELINUX_SELINUX_H
 
 #@INCLUDE_NEXT@ @NEXT_SELINUX_SELINUX_H@
 
-# else
+#else
+# if !defined _@GUARD_PREFIX@_SELINUX_SELINUX_H
+#  define _@GUARD_PREFIX@_SELINUX_SELINUX_H
 
 #  include <sys/types.h>
 #  include <errno.h>
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
+#  ifndef _GL_INLINE_HEADER_BEGIN
   #error "Please include config.h first."
+#  endif
 _GL_INLINE_HEADER_BEGIN
 #  ifndef SE_SELINUX_INLINE
 #   define SE_SELINUX_INLINE _GL_INLINE
@@ -114,10 +113,10 @@ matchpathcon_init_prefix (char const *path _GL_UNUSED_PARAMETER,
 #   define GNULIB_defined_security_types 1
 #  endif
 
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
+#  ifndef _GL_INLINE_HEADER_BEGIN
   #error "Please include config.h first."
+#  endif
 _GL_INLINE_HEADER_BEGIN
 
 # endif
-#endif /* _@GUARD_PREFIX@_SELINUX_SELINUX_H */
+#endif