1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-11 11:50:52 +03:00

3 Commits

Author SHA1 Message Date
Collin Funk
f07c45598e sys_un-h: Make sure that the 'sys' subdirectory is created.
* modules/sys_un-h (Makefile.am): Make the 'sys' subdirectory. Remove
@NMD@ that is not applicable to subdirectories.
2025-07-21 19:04:09 -07:00
Bruno Haible
d3a9a1f7cd sys_un-h: Ensure that <sys/un.h> defines sa_family_t.
* lib/sys_un.in.h: Include <sys/socket.h> or define sa_family_t
explicitly.
* m4/sys_socket_h.m4 (gl_PREREQ_SYS_SA_FAMILY): New macro, extracted
from gl_SYS_SOCKET_H.
(gl_SYS_SOCKET_H): Invoke it.
(gl_SYS_SOCKET_H_DEFAULTS): Don't initialize HAVE_SA_FAMILY_T.
* m4/sys_un_h.m4 (gl_SYS_UN_H): Invoke gl_PREREQ_SYS_SA_FAMILY. Test
whether <sys/un.h> defines sa_family_t. If not, set GL_GENERATE_SYS_UN_H
to true.
* modules/sys_un-h (Makefile.am): Substitute HAVE_SA_FAMILY_T,
HAVE_SA_FAMILY_T_IN_SYS_UN_H.
* tests/test-sys_un-h.c: Include intprops.h. Verify that sa_family_t is
defined and an unsigned integer type.
* modules/sys_un-h-tests (Depends-on): Add intprops.
* doc/posix-headers/sys_un.texi: Mention the problem with sa_family_t.
2025-01-10 23:54:51 +01:00
Bruno Haible
2b43bd904d Rename module sys_un to sys_un-h.
* modules/sys_un-h: Renamed from modules/sys_un.
* modules/sys_un-h-tests: Renamed from modules/sys_un-tests.
* modules/sys_un-h-c++-tests: Renamed from modules/sys_un-c++-tests.
* tests/test-sys_un-h.c: Renamed from tests/test-sys_un.c.
* tests/test-sys_un-h-c++.cc: Renamed from tests/test-sys_un-c++.cc.
* doc/posix-headers/sys_un.texi: Update.
* modules/sys_un: New file.
2024-12-27 23:41:42 +01:00