Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for hisi v1 symbol #17

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/hal/hisi/v1_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,4 +850,19 @@ int v1_system_init(char *snrConfig)
return EXIT_SUCCESS;
}

#endif
#include <sys/stat.h>

struct v1_stat {
char padding[16];
int st_mode;
};

int sTaT(const char *path, struct v1_stat *buf)
{
struct stat st;
int ret = stat(path, &st);
buf->st_mode = st.st_mode;
return ret;
}

#endif