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

Allow GoogleTest to find clone() with PGI compiler #474

Open
GoogleCodeExporter opened this issue Jun 20, 2015 · 1 comment
Open

Allow GoogleTest to find clone() with PGI compiler #474

GoogleCodeExporter opened this issue Jun 20, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

IMPORTANT NOTE: PLEASE send issues or requests to
http://groups.google.com/group/googletestframework *instead of here*.
This issue tracker is NOT regularly monitored.

If you really need to create a new issue, please provide the information
asked for below.

What steps will reproduce the problem?
1. Compile gmock-1.7.0 with PGI C++ compiler on Linux
2. Observe failure to find clone()
3.

What is the expected output? What do you see instead?

clone() should be found, or the fallback triggered.

What version of Google Test are you using? On what operating system?

1.7.0, PGI C++ compiler, Linux

Please provide any additional information below, such as a code snippet.

To fix, either #define _GNU_SOURCE if __PGI is defined, so that the compiler 
will find clone() in sched.h, or trigger GoogleTest's the fork() fallback for 
clone() in this case.

Original issue reported on code.google.com by [email protected] on 16 Aug 2014 at 11:04

@GoogleCodeExporter
Copy link
Author

Or perhaps use the appropriate feature-test macro before assuming that a 
compiler on Linux always provides _GNU_SOURCE.

Original comment by [email protected] on 20 Aug 2014 at 4:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant