8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22: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:
Adriano dos Santos Fernandes 2021-12-22 15:18:46 -03:00
parent efb5732e01
commit af18e50b6e

View File

@ -959,7 +959,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)
@ -991,7 +991,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
@ -1033,7 +1033,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])
@ -1044,7 +1044,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])