summaryrefslogtreecommitdiff
path: root/myisam/sp_test.c
diff options
context:
space:
mode:
authorhf@deer.(none) <>2004-03-12 18:51:03 +0400
committerhf@deer.(none) <>2004-03-12 18:51:03 +0400
commitec457a96efea6ab8eb1111e1659b60af62f12032 (patch)
tree416c45416bcc8605ff5754473476ddabbd22fe2f /myisam/sp_test.c
parent6aa1cc4a6387ffdba81c4959259f3249643e8fe5 (diff)
downloadmariadb-git-ec457a96efea6ab8eb1111e1659b60af62f12032.tar.gz
WL#1163 To make spatial code optional
myisam spatial code isolated
Diffstat (limited to 'myisam/sp_test.c')
-rw-r--r--myisam/sp_test.c10
1 files changed, 10 insertions, 0 deletions
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*/
+