summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-21 23:29:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-21 23:29:33 (GMT)
commit5ebae876281828c17f139ec063dae43a39fd7741 (patch)
tree830d5b3eb026658916895a93b54a822611a1d859 /Modules/posixmodule.c
parent6174474bea9fe6f5f12f05a16004eabb817ce721 (diff)
downloadcpython-5ebae876281828c17f139ec063dae43a39fd7741.zip
cpython-5ebae876281828c17f139ec063dae43a39fd7741.tar.gz
cpython-5ebae876281828c17f139ec063dae43a39fd7741.tar.bz2
Issue #25207, #14626: Fix my commit.
It doesn't work to use #define XXX defined(YYY)" and then "#ifdef XXX" to check YYY.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index e5b4792..467ce2c 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4605,9 +4605,9 @@ utime_fd(utime_t *ut, int fd)
#define PATH_UTIME_HAVE_FD 0
#endif
-
-#define UTIME_HAVE_NOFOLLOW_SYMLINKS \
- (defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES))
+#if defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES)
+# define UTIME_HAVE_NOFOLLOW_SYMLINKS
+#endif
#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS