openbsd-ports/lang/python/2.6/patches/patch-Modules_socketmodule_c
2009-05-03 22:26:27 +00:00

23 lines
703 B
Plaintext

$OpenBSD: patch-Modules_socketmodule_c,v 1.2 2009/05/03 22:26:27 djm Exp $
--- Modules/socketmodule.c.orig Wed Apr 1 04:20:48 2009
+++ Modules/socketmodule.c Sun Apr 19 10:28:55 2009
@@ -93,9 +93,6 @@ Local naming conventions:
#include "Python.h"
#include "structmember.h"
-#undef MAX
-#define MAX(x, y) ((x) < (y) ? (y) : (x))
-
/* Socket object documentation */
PyDoc_STRVAR(sock_doc,
"socket([family[, type[, proto]]]) -> socket object\n\
@@ -3746,7 +3743,7 @@ socket_inet_aton(PyObject *self, PyObject *args)
#if !defined(HAVE_INET_ATON) || defined(USE_INET_ATON_WEAKLINK)
/* Have to use inet_addr() instead */
- unsigned long packed_addr;
+ int packed_addr;
#endif
char *ip_addr;