00db10
commit 257dabc059447934a90be6fce4b5d2a5f4b63dfd
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Wed Dec 14 18:23:15 2016 +0000
00db10
00db10
    Include <linux/falloc.h> in bits/fcntl-linux.h.
00db10
    
00db10
    This patch makes bits/fcntl-linux.h include <linux/falloc.h> to define
00db10
    the FALLOC_* flags under __USE_GNU (linux/falloc.h defines only those
00db10
    bits, nothing else).
00db10
    
00db10
    Tested for x86_64 and x86.
00db10
    
00db10
    	* sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
00db10
    	<linux/falloc.h>.
00db10
    	(FALLOC_FL_KEEP_SIZE): Remove.
00db10
    	(FALLOC_FL_PUNCH_HOLE): Likewise.
00db10
    	(FALLOC_FL_COLLAPSE_RANGE): Likewise.
00db10
    	(FALLOC_FL_ZERO_RANGE): Likewise.
00db10
00db10
diff -rup a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h	2018-04-13 18:27:53.000000000 -0400
00db10
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h	2018-04-13 18:29:27.108482182 -0400
00db10
@@ -300,6 +300,10 @@ struct f_owner_ex
00db10
 # define SPLICE_F_GIFT		8	/* Pages passed in are a gift.  */
00db10
 
00db10
 
00db10
+/* Flags for fallocate.  */
00db10
+# include <linux/falloc.h>
00db10
+
00db10
+
00db10
 /* File handle structure.  */
00db10
 struct file_handle
00db10
 {