summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 69c5e05..eb59513 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3238,7 +3238,7 @@ posix_link(PyObject *self, PyObject *args, PyObject *kwargs)
}
#else
Py_BEGIN_ALLOW_THREADS
-#ifndef HAVE_LINKAT
+#ifdef HAVE_LINKAT
if ((src_dir_fd != DEFAULT_DIR_FD) ||
(dst_dir_fd != DEFAULT_DIR_FD) ||
(!follow_symlinks))