Skip to content

Commit a381c1c

Browse files
committed
Declare getdns_error as extern
1 parent cd6894b commit a381c1c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

getdns.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
#include "pygetdns.h"
4848

4949

50+
PyObject *getdns_error;
51+
5052

5153
PyMethodDef Context_methods[] = {
5254
{ "get_api_information", (PyCFunction)context_get_api_information,

pygetdns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# define UNUSED_PARAM(x) ((void)(x))
4040
#endif
4141

42-
PyObject *getdns_error;
42+
extern PyObject *getdns_error;
4343

4444
typedef struct pygetdns_libevent_callback_data {
4545
void *userarg;

0 commit comments

Comments
 (0)