mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +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
efb5732e01
commit
af18e50b6e
@ -959,7 +959,7 @@ AC_MSG_CHECKING(for working sem_init())
|
|||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
|
||||||
main () {
|
main () {
|
||||||
sem_t s;
|
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_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform])
|
||||||
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
|
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_MSG_CHECKING(for native large file support)
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h>
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h>
|
||||||
main () {
|
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_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
|
||||||
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[])
|
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[])
|
||||||
fi
|
fi
|
||||||
@ -1033,7 +1033,7 @@ main () {
|
|||||||
char a;
|
char a;
|
||||||
union { long long x; sem_t y; } b;
|
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_cv_c_alignment=$ac_status],[ac_cv_c_alignment=$ac_status],[])
|
||||||
AC_MSG_RESULT($ac_cv_c_alignment)
|
AC_MSG_RESULT($ac_cv_c_alignment)
|
||||||
AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
|
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;
|
char a;
|
||||||
double b;
|
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_cv_c_double_align=$ac_status],[ac_cv_c_double_align=$ac_status],[])
|
||||||
AC_MSG_RESULT($ac_cv_c_double_align)
|
AC_MSG_RESULT($ac_cv_c_double_align)
|
||||||
AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
|
AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
|
||||||
|
Loading…
Reference in New Issue
Block a user