diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-22 02:47:56 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-22 12:11:26 +0000 |
commit | 0cc59d38ab6ef38e965d4de8a3ec4b80bcb5a6a3 (patch) | |
tree | ace9fd6e0eb10e789310fd2379ace36d6a47b452 /cmake/TestFileOffsetBits.c | |
parent | 3693dd52cc202a6f317672ee3d0736629808fb15 (diff) |
Replace the Large File Support CMake stuff.
The existing stuff doesn't appear to work (I tried it on 32-bit Ubuntu
18.04, and it did *not* add any flags to the compilation, as it appeared
not to conclude that they were necessary, even though they were).
Pull in the stuff from libpcap, which *does* appear to work. (it does
so in my 32-bit Ubuntu testing).
This should fix #17301.
While we're at it, fix cppcheck.sh so that it doesn't attempt to run
cppcheck on files that have been deleted.
Diffstat (limited to 'cmake/TestFileOffsetBits.c')
-rw-r--r-- | cmake/TestFileOffsetBits.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/cmake/TestFileOffsetBits.c b/cmake/TestFileOffsetBits.c deleted file mode 100644 index 882abb4cfc..0000000000 --- a/cmake/TestFileOffsetBits.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * This code was copied from http://www.gromacs.org/ - * and its toplevel COPYING file starts with: - * - * GROMACS is free software, distributed under the GNU General Public License - * (GPL) Version 2. - */ - -#include <sys/types.h> - -/* detect failure even with -Wno-error on command line */ -#pragma GCC diagnostic error "-Werror" - -int main(int argc, char **argv) -{ - /* Cause a compile-time error if off_t is smaller than 64 bits */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ]; - /* silence unused errors */ - (void)off_t_is_large; - (void)argc; - (void)argv; - return 0; -} |