Blob Blame History Raw
Patch by Robert Scheck <robert@fedoraproject.org> for srm >= 1.2.9, which re-orders
the included header files to successfully build with GCC 4.4 and above. Definement
of FS_TOPDIR_FL etc. is required by <linux/ext2_fs.h>, but defined in <linux/fs.h>.

--- srm-1.2.9/src/sunlink.c			2008-07-10 23:50:08.000000000 +0200
+++ srm-1.2.9/src/sunlink.c.sort_headers	2009-04-14 04:52:01.000000000 +0200
@@ -26,8 +26,8 @@
 #endif
 
 #if HAVE_LINUX_EXT3_FS_H
-#include <linux/ext3_fs.h>
 #include <linux/fs.h>
+#include <linux/ext3_fs.h>
 
 #define EXT2_IOC_GETFLAGS EXT3_IOC_GETFLAGS
 #define EXT2_UNRM_FL EXT3_UNRM_FL
@@ -36,8 +36,8 @@
 #define EXT2_IOC_SETFLAGS EXT3_IOC_SETFLAGS
 
 #elif HAVE_LINUX_EXT2_FS_H
-#include <linux/ext2_fs.h>
 #include <linux/fs.h>
+#include <linux/ext2_fs.h>
 #endif
 
 #include "srm.h"