]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
selinux-h: Fix error with MSVC.
authorBruno Haible <bruno@clisp.org>
Sun, 25 May 2025 19:21:32 +0000 (21:21 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 25 May 2025 19:21:32 +0000 (21:21 +0200)
* lib/se-selinux.in.h: Add comment.
* modules/selinux-h (Depends-on): Add sys_types-h.

ChangeLog
lib/se-selinux.in.h
modules/selinux-h

index d42ae4954be74773ae7f2671958604c465528d9c..e9c55ad680f28786bf57c83d44cb090edf8a145d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-25  Bruno Haible  <bruno@clisp.org>
+
+       selinux-h: Fix error with MSVC.
+       * lib/se-selinux.in.h: Add comment.
+       * modules/selinux-h (Depends-on): Add sys_types-h.
+
 2025-05-25  Bruno Haible  <bruno@clisp.org>
 
        fcntl-h, unistd-h: Fix errors in C++ mode with MSVC.
index 492b239bbb7d432f747831df439f3540d107a53f..6ddd273b2a9c72684ebb7a048ff40273441a38e3 100644 (file)
@@ -33,7 +33,7 @@
 #   error "Please include config.h first."
 #  endif
 
-#  include <sys/types.h>
+#  include <sys/types.h> /* for mode_t */
 #  include <errno.h>
 
 _GL_INLINE_HEADER_BEGIN
index 2a6074daf34670fc3b526cfa6f31a12d8260254f..ae5841e0efd532b89adfbc2aa482e731f61122ce 100644 (file)
@@ -15,6 +15,7 @@ m4/selinux-selinux-h.m4
 
 Depends-on:
 errno-h
+sys_types-h
 extern-inline
 gen-header