tools: build dump_ld_config and filesize with -D_FILE_OFFSET_BITS=64

... because they use stat().
This commit is contained in:
Дмитрий Левин 2019-01-10 23:20:03 +00:00
parent 17184e3759
commit db62fbdc5a
2 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,9 @@
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
#endif
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -16,6 +16,12 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
#endif
#include <errno.h>
#include <stdio.h>
#include <string.h>