summaryrefslogtreecommitdiff
path: root/Python/dynload_shlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dynload_shlib.c')
-rw-r--r--Python/dynload_shlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c
index 223e0d03f6..082154dd91 100644
--- a/Python/dynload_shlib.c
+++ b/Python/dynload_shlib.c
@@ -3,7 +3,7 @@
#include "Python.h"
#include "pycore_interp.h" // _PyInterpreterState.dlopenflags
-#include "pycore_pystate.h" // _PyInterpreterState_GET_UNSAFE()
+#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "importdl.h"
#include <sys/types.h>
@@ -95,7 +95,7 @@ _PyImport_FindSharedFuncptr(const char *prefix,
}
}
- dlopenflags = _PyInterpreterState_GET_UNSAFE()->dlopenflags;
+ dlopenflags = _PyInterpreterState_GET()->dlopenflags;
handle = dlopen(pathname, dlopenflags);