xref: /netbsd-src/external/bsd/ntp/dist/sntp/libevent/cmake/CheckFileOffsetBits.c (revision eabc0478de71e4e011a5b4e0392741e01d491794)
1*eabc0478Schristos /*	$NetBSD: CheckFileOffsetBits.c,v 1.2 2024/08/18 20:47:22 christos Exp $	*/
2897be3a4Schristos 
3897be3a4Schristos #include <sys/types.h>
4897be3a4Schristos 
5897be3a4Schristos #define KB ((off_t)1024)
6897be3a4Schristos #define MB ((off_t)1024 * KB)
7897be3a4Schristos #define GB ((off_t)1024 * MB)
8897be3a4Schristos #define TB ((off_t)1024 * GB)
9897be3a4Schristos int t2[(((64 * GB -1) % 671088649) == 268434537)
10897be3a4Schristos        && (((TB - (64 * GB -1) + 255) % 1792151290) == 305159546)? 1: -1];
11897be3a4Schristos 
12897be3a4Schristos int main()
13897be3a4Schristos {
14897be3a4Schristos   ;
15897be3a4Schristos   return 0;
16897be3a4Schristos }
17