While the new standard specifier is nicer, it's not compatible with C99.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
struct unix_diag_req */
#include <sched.h> /* for setns(2) */
#include <search.h> /* tfind, tsearch */
-#include <stdalign.h> /* alignas */
#include <stdint.h>
#include <string.h>
#include <sys/socket.h> /* SOCK_* */
.msg_iov = iovecs,
};
- alignas(void *) uint8_t buf[8192];
+ __attribute__((aligned(sizeof(void *)))) uint8_t buf[8192];
if (sendmsg(diagsd, &mhd, 0) < 0)
return;
*/
#include <linux/bpf.h>
-#include <stdalign.h>
#include <sys/syscall.h>
#include <sys/timerfd.h>
#include <time.h>