summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-14 12:47:03 +0200
committerBruno Haible <bruno@clisp.org>2023-04-14 12:47:03 +0200
commit90c477e69abf6e6414d9099b265dce0e7986c703 (patch)
tree5f2678462b7961d57bb2b67eeec0a9a114ae7316 /lib
parent45122e72f2ea96bade6719b4ca3c6e8102573731 (diff)
downloadgnulib-90c477e69abf6e6414d9099b265dce0e7986c703.tar.gz
sys_msg: New module.
* lib/sys_msg.in.h: New file. * m4/sys_msg_h.m4: New file. * modules/sys_msg: New file. * doc/posix-headers/sys_msg.texi: Mention the new module.
Diffstat (limited to 'lib')
-rw-r--r--lib/sys_msg.in.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/sys_msg.in.h b/lib/sys_msg.in.h
new file mode 100644
index 0000000000..46cf7c19f9
--- /dev/null
+++ b/lib/sys_msg.in.h
@@ -0,0 +1,30 @@
+/* Provide a more reliable sys/msg.h.
+
+ Copyright (C) 2023 Free Software Foundation, Inc.
+
+ This file is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#if __GNUC__ >= 3
+@PRAGMA_SYSTEM_HEADER@
+#endif
+@PRAGMA_COLUMNS@
+
+/* This file uses #include_next of a system file that defines time_t.
+ For the 'year2038' module to work right, <config.h> needs to have been
+ included before. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
+#@INCLUDE_NEXT@ @NEXT_SYS_MSG_H@