Skip to content

Commit

Permalink
Merge pull request #20 from saghul/fix-compilation
Browse files Browse the repository at this point in the history
Fix compilation on OSX
  • Loading branch information
MelindaShore committed Aug 25, 2014
2 parents 2d70b59 + a381c1c commit d6af1a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions getdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#include "pygetdns.h"


PyObject *getdns_error;


PyMethodDef Context_methods[] = {
{ "get_api_information", (PyCFunction)context_get_api_information,
Expand Down
6 changes: 5 additions & 1 deletion pygetdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef PYGETDNS_H
#define PYGETDNS_H

#define GETDNS_STR_IPV4 "IPv4"
#define GETDNS_STR_IPV6 "IPv6"
Expand All @@ -37,7 +39,7 @@
# define UNUSED_PARAM(x) ((void)(x))
#endif

PyObject *getdns_error;
extern PyObject *getdns_error;

typedef struct pygetdns_libevent_callback_data {
void *userarg;
Expand Down Expand Up @@ -130,3 +132,5 @@ PyObject *dispatch_query(PyObject *context_capsule, void *name, uint16_t request
PyObject *dispatch_query(PyObject *context_capsule, void *name, uint16_t request_type,
PyDictObject *extensions_obj, void *userarg, long tid, char *callback);
#endif

#endif /* PYGETDNS_H */

0 comments on commit d6af1a4

Please sign in to comment.