Permalink
Browse files

Issue 280: Compile failure on FreeBSD due to alloca

  • Loading branch information...
1 parent a0bab2c commit 94231936b2165137d0ee25a09d52a109242fd13a @mkleehammer committed Sep 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/pyodbc.h
View
@@ -76,7 +76,9 @@ inline void UNUSED(...) { }
#include <stdarg.h>
#if defined(__SUNPRO_CC) || defined(__SUNPRO_C) || (defined(__GNUC__) && !defined(__MINGW32__))
+#ifndef __FreeBSD__
#include <alloca.h>
+#endif
#define CDECL cdecl
#define min(X,Y) ((X) < (Y) ? (X) : (Y))
#define max(X,Y) ((X) > (Y) ? (X) : (Y))

0 comments on commit 9423193

Please sign in to comment.