Skip to content

Commit

Permalink
file: define _FILE_OFFSET_BITS to 64
Browse files Browse the repository at this point in the history
Fixes compilation under uClibc-ng where ino_t and off_t are the wrong types for the format string.
  • Loading branch information
neheb committed Aug 29, 2020
1 parent f8d348d commit e5021c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#define _DEFAULT_SOURCE
#define _XOPEN_SOURCE
#define _FILE_OFFSET_BITS 64

#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit e5021c6

Please sign in to comment.