Skip to content

Commit f08fbe1

Browse files
committed
options/posix: fcntl.h: guard GNU extension behind _GNU_SOURCE
1 parent 82822eb commit f08fbe1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

options/posix/include/fcntl.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,19 @@ struct file_handle {
5555
int handle_type;
5656
__extension__ unsigned char f_handle[0];
5757
};
58-
#endif
58+
#endif /* _GNU_SOURCE */
5959

6060
#ifndef __MLIBC_ABI_ONLY
6161

6262
#ifdef _GNU_SOURCE
6363
int name_to_handle_at(int __dirfd, const char *__path, struct file_handle *__handle, int *__mount_id, int __flags);
6464
int open_by_handle_at(int __dirfd, struct file_handle *__handle, int __flags);
65-
#endif
6665

6766
ssize_t splice(int __fd_in, off_t *__off_in, int __fd_out, off_t *__off_out, size_t __len, unsigned int __flags);
6867
ssize_t vmsplice(int __fd, const struct iovec *__iov, size_t __nr_segs, unsigned int __flags);
6968

69+
#endif /* _GNU_SOURCE */
70+
7071
#endif /* !__MLIBC_ABI_ONLY */
7172

7273
#define SPLICE_F_MOVE 1

0 commit comments

Comments
 (0)