showlabor / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 Mark.J.A...@gmail.com on 16 Aug 2014 at 11:04

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

Original comment by Mark.J.A...@gmail.com on 20 Aug 2014 at 4:37