Define only least required macros for LFS in config.h.

This commit is contained in:
Tsuda Kageyu
2014-08-05 17:17:06 +09:00
parent a5c56d31ac
commit 2ec7a884c3
9 changed files with 162 additions and 22 deletions

View File

@ -0,0 +1,9 @@
#include <sys/types.h>
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 ];
return 0;
}