aboutsummaryrefslogtreecommitdiff
path: root/sysutils/py-scandir/files/patch-_scandir.c
blob: a0dfd94c9f96b97d81b024c9de9882d0a5dd4684 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- _scandir.c.orig	2018-08-02 16:17:16 UTC
+++ _scandir.c
@@ -660,7 +660,11 @@ _pystat_fromstructstat(STRUCT_STAT *st)
     return v;
 }
 
+#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 9
+const char * const PyStructSequence_UnnamedField = "unnamed field";
+#else
 char *PyStructSequence_UnnamedField = "unnamed field";
+#endif
 
 PyDoc_STRVAR(stat_result__doc__,
 "stat_result: Result from stat, fstat, or lstat.\n\n\