]> Savannah Git Hosting - gnulib.git/commit
sys_un: Avoid compilation error in C++ <string.h> on glibc systems.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Jul 2024 11:04:09 +0000 (13:04 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Jul 2024 11:04:09 +0000 (13:04 +0200)
commit36db8e32d5d64af651b6fba16f349323fa2cde8e
tree59981a593e6817fc3179b3fb66680c852c62f15c
parent959be45b560b9fd6f23e828a304d202484f69397
sys_un: Avoid compilation error in C++ <string.h> on glibc systems.

* m4/sys_un_h.m4 (gl_SYS_UN_H): Require AC_CANONICAL_HOST. Set
GL_GENERATE_SYS_UN_H to true on glibc systems. Invoke
gl_CHECK_NEXT_HEADERS. Initialize HAVE_SYS_UN_H.
* lib/sys_un.in.h: Use include_next and a split double-inclusion guard.
In C++ mode, include <stddef.h> and <string.h> first.
* modules/sys_un (Depends-on): Add include_next.
(Makefile.am): Substitute INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER,
PRAGMA_COLUMNS, NEXT_SYS_UN_H, HAVE_SYS_UN_H. Arrange to remove 'sys'
directory at "make mostlyclean".
ChangeLog
lib/sys_un.in.h
m4/sys_un_h.m4
modules/sys_un