mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
0d9bb86293
This makes cross-compiling happy, use a trick similar to autoconf's AC_CHECK_SIZEOF macro. Basically we make an array: static int array[1 - 2 * !(((long int)(sizeof(off_t))) < 8)]; This gives -1 multiplied by the negation of the condition (sizeof(off_t) < 8) cast to a long int. So if the condition is true it gives array[(-1 * 0)] (remember the condition is cast and negated) thus passing a build test with a 0-sized array. If it's false it gives array[(-1 * 1)] thus failing with a negative-sized array. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Feb 18 23:18:32 CET 2014 on sn-devel-104
compression - Various compression algorithms (MSZIP, lzxpress) dnspython - Python module for working with DNS. nss_wrapper - Wrapper for the user and group NSS API allowing the use of other data sources. popt - Command-line option parsing library replace - Provides replacements for standard (POSIX, C99) functions not provided by the host platform. socket_wrapper - Wrapper library allowing TCP/IP traffic to be redirected over Unix domain sockets. subunit - Utilities and bindings for working with the Subunit test result reporting protocol. talloc - Hierarchical pool based memory allocator tdb - Simple but fast key/value database library, supporting multiple writers torture - Simple unit testing helper library