From 4f58017a5e9bc357c58302530a9af00201f988a7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 31 Jan 2023 15:53:29 +0000 Subject: [PATCH] lib/guestfs-internal-all.h: Use __restrict__ keyword for very old GCC RHEL 7 GCC 4.8.5 does not allow the restrict keyword. Use the permitted alternative. --- lib/guestfs-internal-all.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/guestfs-internal-all.h b/lib/guestfs-internal-all.h index 4342be349..979bda83d 100644 --- a/lib/guestfs-internal-all.h +++ b/lib/guestfs-internal-all.h @@ -156,8 +156,8 @@ typedef enum { #ifndef HAVE_ACCEPT4 #include -extern int accept4 (int sockfd, struct sockaddr *restrict addr, - socklen_t *restrict addrlen, int flags); +extern int accept4 (int sockfd, struct sockaddr *__restrict__ addr, + socklen_t *__restrict__ addrlen, int flags); #endif #ifndef HAVE_PIPE2