mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
79 lines
2.2 KiB
Plaintext
79 lines
2.2 KiB
Plaintext
From 8a9c5047debdbeec496c1ec5569de3278d643a66 Mon Sep 17 00:00:00 2001
|
|
From: Mark Hellegers <mark@firedisk.net>
|
|
Date: Wed, 10 Jun 2015 23:30:01 +0200
|
|
Subject: Changes to make psqlodbc run on Haiku
|
|
|
|
|
|
diff --git a/config/config.guess b/config/config.guess
|
|
index 0e30d56..9070f97 100755
|
|
--- a/config/config.guess
|
|
+++ b/config/config.guess
|
|
@@ -1131,6 +1131,12 @@ EOF
|
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
|
echo i586-pc-beos
|
|
exit 0 ;;
|
|
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
|
+ echo i586-pc-haiku
|
|
+ exit ;;
|
|
+ x86_64:Haiku:*:*)
|
|
+ echo x86_64-unknown-haiku
|
|
+ exit ;;
|
|
SX-4:SUPER-UX:*:*)
|
|
echo sx4-nec-superux${UNAME_RELEASE}
|
|
exit 0 ;;
|
|
diff --git a/config/config.sub b/config/config.sub
|
|
index 9d7f733..19ac113 100755
|
|
--- a/config/config.sub
|
|
+++ b/config/config.sub
|
|
@@ -1140,7 +1140,7 @@ case $os in
|
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
|
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
|
|
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -haiku*)
|
|
# Remember, each alternative MUST END IN *, to match a version number.
|
|
;;
|
|
-qnx*)
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 5f4b9cb..3bffe33 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -102,7 +102,7 @@ fi
|
|
# SQLCOLATTRIBUTE_SQLLEN check
|
|
#
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
|
- [[#include <sql.h>>
|
|
+ [[#include <sql.h>
|
|
SQLRETURN SQL_API SQLColAttribute
|
|
(SQLHSTMT StatementHandle,SQLUSMALLINT ColumnNumber,
|
|
SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute,
|
|
--
|
|
2.37.3
|
|
|
|
|
|
From ec05bae02be74a9d32e7605e0ca555a51793c7d8 Mon Sep 17 00:00:00 2001
|
|
From: begasus <begasus@gmail.com>
|
|
Date: Fri, 24 Mar 2023 08:48:01 +0100
|
|
Subject: Fix conflicting int types
|
|
|
|
|
|
diff --git a/md5.h b/md5.h
|
|
index 4f5721e..c4a91e1 100644
|
|
--- a/md5.h
|
|
+++ b/md5.h
|
|
@@ -39,7 +39,11 @@ typedef char bool;
|
|
#ifndef HAVE_UINT8
|
|
typedef unsigned char uint8; /* == 8 bits */
|
|
typedef unsigned short uint16; /* == 16 bits */
|
|
+#ifdef __HAIKU__
|
|
+#include <SupportDefs.h>
|
|
+#else
|
|
typedef unsigned int uint32; /* == 32 bits */
|
|
+#endif
|
|
#endif /* not HAVE_UINT8 */
|
|
|
|
extern bool md5_hash(const void *buff, size_t len, char *hexsum);
|
|
--
|
|
2.37.3
|
|
|