diff options
-rw-r--r-- | lib/compress.c | 2 | ||||
-rw-r--r-- | lib/io.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/compress.c b/lib/compress.c index 8337487..b14ff17 100644 --- a/lib/compress.c +++ b/lib/compress.c @@ -7,7 +7,9 @@ * Created by Miao Xie <miaoxie@huawei.com> * with heavy changes by Gao Xiang <gaoxiang25@huawei.com> */ +#ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE +#endif #include <string.h> #include <stdlib.h> #include <unistd.h> @@ -6,8 +6,12 @@ * http://www.huawei.com/ * Created by Li Guifu <bluce.liguifu@huawei.com> */ +#ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE +#endif +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include <sys/stat.h> #include <sys/ioctl.h> #include "erofs/io.h" |