mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Fixed #7084 - Creating unique constraints on MacOS fails on larger tables.
configure.ac macros were not compiling and returning 1. That caused FB_ALIGNMENT and FB_DOUBLE_ALIGN to have the wrong value 1.
This commit is contained in:
parent
66568b12d5
commit
2920891287
10
configure.ac
10
configure.ac
@ -1049,7 +1049,7 @@ AC_MSG_CHECKING(for working sem_init())
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
|
||||
main () {
|
||||
sem_t s;
|
||||
exit(sem_init(&s,0,0));
|
||||
return sem_init(&s,0,0);
|
||||
}
|
||||
]])],[AC_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform])
|
||||
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
|
||||
@ -1089,7 +1089,7 @@ if test "$ac_cv_sys_file_offset_bits" = "no"; then
|
||||
AC_MSG_CHECKING(for native large file support)
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h>
|
||||
main () {
|
||||
exit(!(sizeof(off_t) == 8));
|
||||
return !(sizeof(off_t) == 8);
|
||||
}]])],[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
|
||||
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[])
|
||||
fi
|
||||
@ -1140,7 +1140,7 @@ main () {
|
||||
char a;
|
||||
union { long long x; sem_t y; } b;
|
||||
};
|
||||
exit((int)&((struct s*)0)->b);
|
||||
return (int)&((struct s*)0)->b;
|
||||
}]])],[ac_cv_c_alignment=$ac_status],[ac_cv_c_alignment=$ac_status],[])
|
||||
AC_MSG_RESULT($ac_cv_c_alignment)
|
||||
AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
|
||||
@ -1151,7 +1151,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[main () {
|
||||
char a;
|
||||
double b;
|
||||
};
|
||||
exit((int)&((struct s*)0)->b);
|
||||
return (int)&((struct s*)0)->b;
|
||||
}]])],[ac_cv_c_double_align=$ac_status],[ac_cv_c_double_align=$ac_status],[])
|
||||
AC_MSG_RESULT($ac_cv_c_double_align)
|
||||
AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
|
||||
@ -1168,7 +1168,7 @@ static int abs64Compare(SINT64 n1, SINT64 n2) {
|
||||
return n1 == n2 ? 0 : n1 < n2 ? 1 : -1;
|
||||
}
|
||||
int main() {
|
||||
exit (abs64Compare(-9223372036854775808, 3652058) == 1 ? 0 : 1);
|
||||
return abs64Compare(-9223372036854775808, 3652058) == 1 ? 0 : 1;
|
||||
}]])],[ac_cv_compare_failed=0
|
||||
ac_cv_compare_result=success])
|
||||
CFLAGS="$savedflags"
|
||||
|
Loading…
Reference in New Issue
Block a user