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.
This commit is contained in:
Richard W.M. Jones
2023-01-31 15:53:29 +00:00
parent 8f6b82bc45
commit 4f58017a5e

View File

@@ -156,8 +156,8 @@ typedef enum {
#ifndef HAVE_ACCEPT4
#include <sys/socket.h>
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