vcpkg/ports/python3/0006-fix-duplicate-symbols.patch

40 lines
1.2 KiB
Diff
Raw Normal View History

2020-12-19 04:00:45 +08:00
From 62e082c1eba79d46ba8ab4b7a556a57a2253d555 Mon Sep 17 00:00:00 2001
From: Adam Johnson <AdamJohnso@gmail.com>
Date: Fri, 11 Sep 2020 12:35:36 -0400
Subject: [PATCH 6/6] fix duplicate symbols
---
Modules/_winapi.c | 2 +-
Modules/overlapped.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/_winapi.c b/Modules/_winapi.c
index e1672c4785..27148094d2 100644
--- a/Modules/_winapi.c
+++ b/Modules/_winapi.c
@@ -304,7 +304,7 @@ static PyMemberDef overlapped_members[] = {
{NULL}
};
-PyTypeObject OverlappedType = {
+static PyTypeObject OverlappedType = {
PyVarObject_HEAD_INIT(NULL, 0)
/* tp_name */ "_winapi.Overlapped",
/* tp_basicsize */ sizeof(OverlappedObject),
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
index cd7869fa8a..319ea0a4b7 100644
--- a/Modules/overlapped.c
+++ b/Modules/overlapped.c
@@ -1756,7 +1756,7 @@ static PyGetSetDef Overlapped_getsets[] = {
{NULL},
};
-PyTypeObject OverlappedType = {
+static PyTypeObject OverlappedType = {
PyVarObject_HEAD_INIT(NULL, 0)
/* tp_name */ "_overlapped.Overlapped",
/* tp_basicsize */ sizeof(OverlappedObject),
--
2.28.0.windows.1