mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
Fix PowerPC format string warnings
commit c491657c0eb68d01dee5cc66ee3909dba5523540 category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- __SANE_USERSPACE_TYPES__ must be defined before <linux/types.h> is included. Hence this patch that moves the definition of that macro into the source files that need it. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
5c5c31ca6b
commit
25d83da964
@ -17,6 +17,10 @@
|
||||
#ifndef __F2FS_FS_H__
|
||||
#define __F2FS_FS_H__
|
||||
|
||||
#ifndef __SANE_USERSPACE_TYPES__
|
||||
#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
@ -42,9 +46,6 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
#ifdef HAVE_LINUX_TYPES_H
|
||||
#ifndef __SANE_USERSPACE_TYPES__
|
||||
#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
||||
#endif
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
@ -18,6 +18,9 @@
|
||||
#ifndef O_LARGEFILE
|
||||
#define O_LARGEFILE 0
|
||||
#endif
|
||||
#ifndef __SANE_USERSPACE_TYPES__
|
||||
#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
Loading…
Reference in New Issue
Block a user