twindb / undrop-for-innodb

TwinDB data recovery toolkit for MySQL/InnoDB
https://twindb.com
GNU General Public License v2.0
386 stars 151 forks source link

Building on FreeBSD #27

Open marcin-gryszkalis opened 3 years ago

marcin-gryszkalis commented 3 years ago

FYI - To build undrop on FreeBSD you have to use gmake (GNU make) and following changes are required:

diff --git a/include/my_config.h b/include/my_config.h
index 6c56449..c1c9a56 100644
--- a/include/my_config.h
+++ b/include/my_config.h
@@ -42,7 +42,7 @@

 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
    */
-#define HAVE_ALLOCA_H 1
+#undef HAVE_ALLOCA_H

 /* Builds Archive Storage Engine */
 /* #undef HAVE_ARCHIVE_DB */
@@ -893,10 +893,10 @@
 /* #undef HAVE_UCHAR */

 /* system headers define uint */
-#define HAVE_UINT 1
+#undef HAVE_UINT

 /* system headers define ulong */
-#define HAVE_ULONG 1
+#undef HAVE_ULONG

 /* Define to 1 if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H 1
@@ -1083,7 +1083,7 @@
 #define SYSTEM_TYPE "unknown-linux-gnu"

 /* Whether we build for Linux */
-#define TARGET_OS_LINUX 1
+#undef TARGET_OS_LINUX

 /* Define if you want to have threaded code. This may be undef on client code
    */