Bug 1220407 - include sys/resource.h for struct rusage and getrusage() on all unices, not linux only. r=yoric

This commit is contained in:
Landry Breuil 2015-10-31 14:49:00 +01:00
Родитель dbee79bdd5
Коммит 12489bbca0
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -41,12 +41,10 @@
#include <mach/mach_types.h>
#include <mach/message.h>
#include <mach/thread_info.h>
#endif // defined(XP_MACOSX)
#if defined(XP_LINUX)
#elif defined(XP_UNIX)
#include <sys/time.h>
#include <sys/resource.h>
#endif // defined(XP_LINUX)
#endif // defined(XP_UNIX)
/* ------------------------------------------------------
*
* Utility functions.