churchyard / rpms / python3

Forked from rpms/python3 3 years ago
Clone

Blame 00114-statvfs-f_flag-constants.patch

1c94c1a
diff -up Python-3.3.0b1/Modules/posixmodule.c.statvfs-f_flag-constants Python-3.3.0b1/Modules/posixmodule.c
1c94c1a
--- Python-3.3.0b1/Modules/posixmodule.c.statvfs-f_flag-constants	2012-06-26 16:19:54.000000000 -0400
1c94c1a
+++ Python-3.3.0b1/Modules/posixmodule.c	2012-07-20 13:39:18.595546387 -0400
1c94c1a
@@ -11665,6 +11665,35 @@ all_ins(PyObject *d)
1c94c1a
     if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
1c94c1a
 #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
+
1c94c1a
     /* FreeBSD sendfile() constants */
1c94c1a
 #ifdef SF_NODISKIO
1c94c1a
     if (ins(d, "SF_NODISKIO", (long)SF_NODISKIO)) return -1;