-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Modify redefinition of strdup #23
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
Conversation
|
Since strdup-related work was contributed by @afcidk, I would defer to him. |
|
@chses9440611, may I ask your build environment and the |
|
@afcidk, |
|
@afcidk, I think it's my own machine fault. For there exists a "string2.h" file under my /usr/include/x86_64-linux-gnu/bits/ , whcih will lead to redefinition error. I think most other machines won't have this problem. Should I close this pull request directly? |
|
The problem seems to lie in glibc version. I think we don't need the instead. |
Since we do not restrict glibc's version, I think this change is suitable. |
|
So, just modify the pull request or submit another pull request ? |
|
Modify the pull request. You can force push the revised commit. |
|
Use |
2ed393b to
61d5f1c
Compare
If the glibc version < 2.26.There are two definitions of strdup in harness.h and string2.h. This will cause a redefined error when compile. Using macro #undef to undef the strdup defined in string2.h:1291.
|
Thank @chses9440611 for contribution! |
There are two definitions of strdup in harness.h
and string2.h. This will cause a redefined error
when compile. Using macro #undef to undef the
strdup defined in string2.h:1291.