churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame python-3.2a1-statvfs-f_flag-constants.patch

7eb10c8
diff -up Python-3.2a1/Modules/posixmodule.c.statvfs-f-flag-constants Python-3.2a1/Modules/posixmodule.c
7eb10c8
--- Python-3.2a1/Modules/posixmodule.c.statvfs-f-flag-constants	2010-07-23 09:53:51.000000000 -0400
7eb10c8
+++ Python-3.2a1/Modules/posixmodule.c	2010-08-02 16:39:38.756000423 -0400
7eb10c8
@@ -8173,6 +8173,43 @@ all_ins(PyObject *d)
d73e38d
 #endif
d73e38d
 #endif
d73e38d
 
7eb10c8
+    /* These came from statvfs.h */
d73e38d
+#ifdef ST_RDONLY
7eb10c8
+    if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
d73e38d
+#endif /* ST_RDONLY */
d73e38d
+#ifdef ST_NOSUID
7eb10c8
+    if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
d73e38d
+#endif /* ST_NOSUID */
d73e38d
+
7eb10c8
+    /* GNU extensions */
d73e38d
+#ifdef ST_NODEV
7eb10c8
+    if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
d73e38d
+#endif /* ST_NODEV */
d73e38d
+#ifdef ST_NOEXEC
7eb10c8
+    if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
d73e38d
+#endif /* ST_NOEXEC */
d73e38d
+#ifdef ST_SYNCHRONOUS
7eb10c8
+    if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
d73e38d
+#endif /* ST_SYNCHRONOUS */
d73e38d
+#ifdef ST_MANDLOCK
7eb10c8
+    if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
d73e38d
+#endif /* ST_MANDLOCK */
d73e38d
+#ifdef ST_WRITE
7eb10c8
+    if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
d73e38d
+#endif /* ST_WRITE */
d73e38d
+#ifdef ST_APPEND
7eb10c8
+    if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
d73e38d
+#endif /* ST_APPEND */
d73e38d
+#ifdef ST_NOATIME
7eb10c8
+    if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
d73e38d
+#endif /* ST_NOATIME */
d73e38d
+#ifdef ST_NODIRATIME
7eb10c8
+    if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
d73e38d
+#endif /* ST_NODIRATIME */
d73e38d
+#ifdef ST_RELATIME
7eb10c8
+    if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
d73e38d
+#endif /* ST_RELATIME */
d73e38d
+
d73e38d
 #if defined(PYOS_OS2)
7eb10c8
     if (insertvalues(d)) return -1;
d73e38d
 #endif