From ec457a96efea6ab8eb1111e1659b60af62f12032 Mon Sep 17 00:00:00 2001
From: "hf@deer.(none)" <>
Date: Fri, 12 Mar 2004 18:51:03 +0400
Subject: WL#1163 To make spatial code optional myisam spatial code isolated

---
 myisam/sp_test.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'myisam/sp_test.c')

diff --git a/myisam/sp_test.c b/myisam/sp_test.c
index 5cbf5e87579..82a7823f624 100644
--- a/myisam/sp_test.c
+++ b/myisam/sp_test.c
@@ -18,6 +18,8 @@
 /* Written by Alex Barkov, who has a shared copyright to this code */
 
 #include "myisam.h"
+
+#ifdef HAVE_SPATIAL
 #include "sp_defs.h"
 
 #define MAX_REC_LENGTH 1024
@@ -575,3 +577,11 @@ static void rtree_PrintWKB(uchar *wkb, uint n_dims)
     }
   }
 }
+
+#else
+int main(int argc __attribute__((unused)),char *argv[] __attribute__((unused)))
+{
+  exit(0);
+}
+#endif /*HAVE_SPATIAL*/
+
-- 
cgit v1.2.1