It looks like at some point the following code was slapped in to work
around a compile failing on some platform or another:
---8<---
#ifndef uint
#define uint unsigned int
#endif
--->8---
This breaks compiling on Mac OS X 10.5 -- and probably on other BSD
derivatives as well -- because uint is later typedef'd in one of the system
headers. gcc of course barfs on a typedef that ends up reading (after macro
expansion):
---8<---
typedef unsigned int unsigned int;
--->8---
Obligatory patch below:
diff -u MySQL-python-1.2.2/_mysql.c MySQL-python-1.2.2.patched/_mysql.c
--- MySQL-python-1.2.2/_mysql.c 2007-02-27 18:35:56.000000000 -0800
+++ MySQL-python-1.2.2.patched/_mysql.c 2007-10-05 23:46:59.000000000
-0700
@@ -34,9 +34,6 @@
#else
#include "my_config.h"
#endif
-#ifndef uint
-#define uint unsigned int
-#endif
#include "mysql.h"
#include "mysqld_error.h"
#include "errmsg.h"
Kyle VanderBeek
MySQLdb
MySQLdb-1.2
Public
|
Date: 2009-03-18 18:56 This Tracker item was closed automatically by the system. It was |
|
Date: 2009-02-24 02:49 I put this in 1.2br as well. It will appear in 1.2.3b2. |
|
Date: 2008-06-06 21:23
|
|
Date: 2008-06-06 19:27
|
|
Date: 2008-04-01 16:17
|
|
Date: 2007-11-16 21:04
|
|
Date: 2007-10-30 18:54
|
| Field | Old Value | Date | By |
|---|---|---|---|
| allow_comments | 1 | 2009-03-18 18:56 | sf-robot |
| close_date | 2009-02-24 03:24 | 2009-03-18 18:56 | sf-robot |
| status_id | Pending | 2009-03-18 18:56 | sf-robot |
| status_id | Open | 2009-02-24 03:24 | kylev |
| close_date | - | 2009-02-24 03:24 | kylev |
| assigned_to | adustman | 2009-02-24 02:49 | kylev |
| resolution_id | None | 2008-04-01 16:17 | adustman |