]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python/patches/00114-statvfs-f_flag-constants.patch
gcc: Update to 6.4.0
[people/ms/ipfire-3.x.git] / python / patches / 00114-statvfs-f_flag-constants.patch
CommitLineData
48d9a6a0
MT
1diff -up Python-2.7rc1/Modules/posixmodule.c.statvfs-f-flag-constants Python-2.7rc1/Modules/posixmodule.c
2--- Python-2.7rc1/Modules/posixmodule.c.statvfs-f-flag-constants 2010-05-15 17:45:30.000000000 -0400
3+++ Python-2.7rc1/Modules/posixmodule.c 2010-06-07 22:54:16.162068624 -0400
4@@ -9174,6 +9174,43 @@ all_ins(PyObject *d)
5 #endif
6 #endif
7
8+ /* These came from statvfs.h */
9+#ifdef ST_RDONLY
10+ if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
11+#endif /* ST_RDONLY */
12+#ifdef ST_NOSUID
13+ if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
14+#endif /* ST_NOSUID */
15+
16+ /* GNU extensions */
17+#ifdef ST_NODEV
18+ if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
19+#endif /* ST_NODEV */
20+#ifdef ST_NOEXEC
21+ if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
22+#endif /* ST_NOEXEC */
23+#ifdef ST_SYNCHRONOUS
24+ if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
25+#endif /* ST_SYNCHRONOUS */
26+#ifdef ST_MANDLOCK
27+ if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
28+#endif /* ST_MANDLOCK */
29+#ifdef ST_WRITE
30+ if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
31+#endif /* ST_WRITE */
32+#ifdef ST_APPEND
33+ if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
34+#endif /* ST_APPEND */
35+#ifdef ST_NOATIME
36+ if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
37+#endif /* ST_NOATIME */
38+#ifdef ST_NODIRATIME
39+ if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
40+#endif /* ST_NODIRATIME */
41+#ifdef ST_RELATIME
42+ if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
43+#endif /* ST_RELATIME */
44+
45 #if defined(PYOS_OS2)
46 if (insertvalues(d)) return -1;
47 #endif