changeset 15998:9b28a5d31bb5

sys_socket: use stdalign, not alignof * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>. * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 16 Oct 2011 17:19:18 -0700
parents d8fd2f096b83
children bf4984d2b939
files ChangeLog lib/sys_socket.in.h modules/sys_socket
diffstat 3 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,10 @@
 	* modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
 	* modules/crypto/sha512: Likewise.
 
+	sys_socket: use stdalign, not alignof
+	* lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
+	* modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
+
 2011-10-27  Bruno Haible  <bruno@clisp.org>
 
 	raise test: Avoid a test failure on Linux/MIPS.
--- a/lib/sys_socket.in.h
+++ b/lib/sys_socket.in.h
@@ -85,7 +85,7 @@
 #  endif
 # endif
 #else
-# include <alignof.h>
+# include <stdalign.h>
 /* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on
    2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */
 # define __ss_aligntype unsigned long int
--- a/modules/sys_socket
+++ b/modules/sys_socket
@@ -7,7 +7,6 @@
 m4/sockpfaf.m4
 
 Depends-on:
-alignof
 errno
 include_next
 snippet/arg-nonnull
@@ -15,6 +14,7 @@
 snippet/warn-on-use
 socklen
 ssize_t
+stdalign
 sys_uio
 
 configure.ac: