Commit 36d80a52 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #6184 run tests on darwin for fun

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54657 c7de825b-a66e-492c-adef-691d508d4ae1
parent e7a2d987
...@@ -15,7 +15,7 @@ endif ...@@ -15,7 +15,7 @@ endif
all: $(TARGETS) all: $(TARGETS)
clean: clean:
rm -rf $(TARGETS) *.gcov *.gcno *.gcda *.testdir rm -rf $(TARGETS) *.gcov *.gcno *.gcda *.testdir *.dSYM
check: $(CHECKS) check: $(CHECKS)
true true
......
...@@ -6,13 +6,16 @@ ...@@ -6,13 +6,16 @@
#ident "Copyright (c) 2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2013 Tokutek Inc. All rights reserved."
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <memory.h> #include <memory.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <db.h> #include <db.h>
#if __linux__
#include <endian.h> #include <endian.h>
#include <byteswap.h> #endif
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h>
typedef unsigned long long ulonglong; typedef unsigned long long ulonglong;
#include "tokudb_status.h" #include "tokudb_status.h"
#include "tokudb_buffer.h" #include "tokudb_buffer.h"
...@@ -37,11 +40,14 @@ uint get_key_parts(KEY_INFO *key_info) { ...@@ -37,11 +40,14 @@ uint get_key_parts(KEY_INFO *key_info) {
assert(key_info); assert(key_info);
return 0; return 0;
} }
#if __APPLE__
typedef unsigned long ulong;
#endif
#include "tokudb_card.h" #include "tokudb_card.h"
static uint32_t hton32(uint32_t n) { static uint32_t hton32(uint32_t n) {
#if BYTE_ORDER == LITTLE_ENDIAN #if BYTE_ORDER == LITTLE_ENDIAN
return bswap_32(n); return __builtin_bswap32(n);
#else #else
return n; return n;
#endif #endif
......
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
#ident "Copyright (c) 2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2013 Tokutek Inc. All rights reserved."
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <memory.h> #include <memory.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <db.h> #include <db.h>
#if __linux__
#include <endian.h> #include <endian.h>
#include <byteswap.h> #endif
#include <sys/stat.h> #include <sys/stat.h>
typedef unsigned long long ulonglong; typedef unsigned long long ulonglong;
#include "tokudb_status.h" #include "tokudb_status.h"
...@@ -37,11 +39,14 @@ uint get_key_parts(KEY_INFO *key_info) { ...@@ -37,11 +39,14 @@ uint get_key_parts(KEY_INFO *key_info) {
assert(key_info); assert(key_info);
return 0; return 0;
} }
#if __APPLE__
typedef unsigned long ulong;
#endif
#include "tokudb_card.h" #include "tokudb_card.h"
static uint32_t hton32(uint32_t n) { static uint32_t hton32(uint32_t n) {
#if BYTE_ORDER == LITTLE_ENDIAN #if BYTE_ORDER == LITTLE_ENDIAN
return bswap_32(n); return __builtin_bswap32(n);
#else #else
return n; return n;
#endif #endif
......
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
#ident "Copyright (c) 2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2013 Tokutek Inc. All rights reserved."
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <memory.h> #include <memory.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <db.h> #include <db.h>
#if __linux__
#include <endian.h> #include <endian.h>
#include <byteswap.h> #endif
#include <sys/stat.h> #include <sys/stat.h>
typedef unsigned long long ulonglong; typedef unsigned long long ulonglong;
#include "tokudb_status.h" #include "tokudb_status.h"
...@@ -37,11 +39,14 @@ uint get_key_parts(KEY_INFO *key_info) { ...@@ -37,11 +39,14 @@ uint get_key_parts(KEY_INFO *key_info) {
assert(key_info); assert(key_info);
return 0; return 0;
} }
#if __APPLE__
typedef unsigned long ulong;
#endif
#include "tokudb_card.h" #include "tokudb_card.h"
static uint32_t hton32(uint32_t n) { static uint32_t hton32(uint32_t n) {
#if BYTE_ORDER == LITTLE_ENDIAN #if BYTE_ORDER == LITTLE_ENDIAN
return bswap_32(n); return __builtin_bswap32(n);
#else #else
return n; return n;
#endif #endif
......
...@@ -7,12 +7,14 @@ ...@@ -7,12 +7,14 @@
#ident "Copyright (c) 2013 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2013 Tokutek Inc. All rights reserved."
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <memory.h> #include <memory.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <db.h> #include <db.h>
#if __linux__
#include <endian.h> #include <endian.h>
#include <byteswap.h> #endif
#include <sys/stat.h> #include <sys/stat.h>
typedef unsigned long long ulonglong; typedef unsigned long long ulonglong;
#include "tokudb_status.h" #include "tokudb_status.h"
...@@ -38,11 +40,14 @@ uint get_key_parts(KEY_INFO *key_info) { ...@@ -38,11 +40,14 @@ uint get_key_parts(KEY_INFO *key_info) {
assert(key_info); assert(key_info);
return 0; return 0;
} }
#if __APPLE__
typedef unsigned long ulong;
#endif
#include "tokudb_card.h" #include "tokudb_card.h"
static uint32_t hton32(uint32_t n) { static uint32_t hton32(uint32_t n) {
#if BYTE_ORDER == LITTLE_ENDIAN #if BYTE_ORDER == LITTLE_ENDIAN
return bswap_32(n); return __builtin_bswap32(n);
#else #else
return n; return n;
#endif #endif
......
...@@ -32,6 +32,9 @@ uint get_key_parts(KEY_INFO *key_info) { ...@@ -32,6 +32,9 @@ uint get_key_parts(KEY_INFO *key_info) {
assert(key_info); assert(key_info);
return 0; return 0;
} }
#if __APPLE__
typedef unsigned long ulong;
#endif
#include <tokudb_card.h> #include <tokudb_card.h>
// verify that we can create and close a status dictionary // verify that we can create and close a status dictionary
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment