添加hdiff_dir在qnx平台的目录处理逻辑,使用_QNX_宏区分#437
Closed
Oshienai96 wants to merge 2 commits into
Closed
Conversation
Owner
|
我对QNX系统不熟悉,看起来有和linux类似的opendir readdir closedir函数组合; |
…iff_dirNext funtion
Oshienai96
commented
Dec 5, 2025
Author
Oshienai96
left a comment
There was a problem hiding this comment.
use stat struct to check path attributes if d_type is not available
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
非常感谢您的代码分享。最近我遇到在qnx平台上的需求,在makefile里添加交叉编译配置,会遇到编译错误——”dirDiffPatch/dir_diff/dir_diff_tools.cpp:122:18: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'?“
。因此我在里面参照windows下的处理思路,添加了qnx下的处理逻辑。
编译通过,验证在qnx 7.1上可正常运行。