cool2k / snappy

Automatically exported from code.google.com/p/snappy
Other
0 stars 0 forks source link

Windows does not have file <sys/resource.h> #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Microsoft Visual Studio 2005, 2008 and MinGW from opensuse does not have file 
<sys/resource.h>.

And on MinGW does not building shared library (dll). Only static.

Original issue reported on code.google.com by php...@gmail.com on 2 Apr 2011 at 9:07

GoogleCodeExporter commented 9 years ago
Actually this is much more than just a .h file; Windows doesn't have 
getrusage() at all, but uses its own similar functions. I thought I'd included 
a patch to this effect in 1.0.1, but that patch has obviously gotten lost (I 
can't find it anymore). Do you want to write a patch?

Original comment by se...@google.com on 4 Apr 2011 at 9:29

GoogleCodeExporter commented 9 years ago
Might be worth adding an option to configure to disable the compilation of the 
test in windows?

Original comment by php...@gmail.com on 4 Apr 2011 at 10:20

GoogleCodeExporter commented 9 years ago
It would be less work (and significantly more gain) just making the test work. 
It's mostly a matter of digging up the right Win32 call and rewriting 
StartBenchmarkTiming and friends.

Original comment by se...@google.com on 4 Apr 2011 at 11:55

GoogleCodeExporter commented 9 years ago
Compilation of the unit test is fixed in r28.

For the issue with building a DLL; please file a separate bug report if you are 
still seeing it.

Original comment by se...@google.com on 11 Apr 2011 at 9:07