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