Blame SOURCES/00114-statvfs-f_flag-constants.patch

925e6b
diff -up Python-2.7rc1/Modules/posixmodule.c.statvfs-f-flag-constants Python-2.7rc1/Modules/posixmodule.c
925e6b
--- Python-2.7rc1/Modules/posixmodule.c.statvfs-f-flag-constants	2010-05-15 17:45:30.000000000 -0400
925e6b
+++ Python-2.7rc1/Modules/posixmodule.c	2010-06-07 22:54:16.162068624 -0400
925e6b
@@ -9174,6 +9174,43 @@ all_ins(PyObject *d)
925e6b
 #endif
925e6b
 #endif
925e6b
 
925e6b
+    /* These came from statvfs.h */
925e6b
+#ifdef ST_RDONLY
925e6b
+    if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
925e6b
+#endif /* ST_RDONLY */
925e6b
+#ifdef ST_NOSUID
925e6b
+    if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
925e6b
+#endif /* ST_NOSUID */
925e6b
+    
925e6b
+    /* GNU extensions */
925e6b
+#ifdef ST_NODEV
925e6b
+    if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
925e6b
+#endif /* ST_NODEV */
925e6b
+#ifdef ST_NOEXEC
925e6b
+    if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
925e6b
+#endif /* ST_NOEXEC */
925e6b
+#ifdef ST_SYNCHRONOUS
925e6b
+    if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
925e6b
+#endif /* ST_SYNCHRONOUS */
925e6b
+#ifdef ST_MANDLOCK
925e6b
+    if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
925e6b
+#endif /* ST_MANDLOCK */
925e6b
+#ifdef ST_WRITE
925e6b
+    if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
925e6b
+#endif /* ST_WRITE */
925e6b
+#ifdef ST_APPEND
925e6b
+    if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
925e6b
+#endif /* ST_APPEND */
925e6b
+#ifdef ST_NOATIME
925e6b
+    if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
925e6b
+#endif /* ST_NOATIME */
925e6b
+#ifdef ST_NODIRATIME
925e6b
+    if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
925e6b
+#endif /* ST_NODIRATIME */
925e6b
+#ifdef ST_RELATIME
925e6b
+    if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
925e6b
+#endif /* ST_RELATIME */
925e6b
+    
925e6b
 #if defined(PYOS_OS2)
925e6b
     if (insertvalues(d)) return -1;
925e6b
 #endif