From a9e50643bf8f04bc5644f6e4655be7a417fa7fb8 Mon Sep 17 00:00:00 2001 From: thewhiteninja <40250307+thewhiteninja@users.noreply.github.com> Date: Sun, 25 Oct 2020 07:47:42 +0100 Subject: [PATCH] fix compilation on Windows with WinPcap 4.1.2 Dev's Pack --- pcapy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcapy.h b/pcapy.h index 09804f5..3223b10 100644 --- a/pcapy.h +++ b/pcapy.h @@ -21,7 +21,8 @@ static char* luid_to_guid(char *luid); #endif #if PY_MAJOR_VERSION >= 3 -PyObject * PyInit_pcapy(void); +PyMODINIT_FUNC +PyInit_pcapy(void); #else void initpcapy(void); #endif