fix(cygwin): Fix compile error where CPU_SETSIZE isn't defined. (#948)
Based on a fix from @RomelSan. Fixes #944.
Этот коммит содержится в:
родитель
6f5512e631
Коммит
cfcfabf5d7
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* iperf, Copyright (c) 2014-2019, The Regents of the University of
|
* iperf, Copyright (c) 2014-2020, The Regents of the University of
|
||||||
* California, through Lawrence Berkeley National Laboratory (subject
|
* California, through Lawrence Berkeley National Laboratory (subject
|
||||||
* to receipt of any required approvals from the U.S. Dept. of
|
* to receipt of any required approvals from the U.S. Dept. of
|
||||||
* Energy). All rights reserved.
|
* Energy). All rights reserved.
|
||||||
@ -63,6 +63,10 @@
|
|||||||
#include <sys/cpuset.h>
|
#include <sys/cpuset.h>
|
||||||
#endif /* HAVE_CPUSET_SETAFFINITY */
|
#endif /* HAVE_CPUSET_SETAFFINITY */
|
||||||
|
|
||||||
|
#if defined(__CYGWIN__) || defined(_WIN32) || defined(_WIN64) || defined(__WINDOWS__)
|
||||||
|
#define CPU_SETSIZE __CPU_SETSIZE
|
||||||
|
#endif /* __CYGWIN__, _WIN32, _WIN64, __WINDOWS__ */
|
||||||
|
|
||||||
#if defined(HAVE_SETPROCESSAFFINITYMASK)
|
#if defined(HAVE_SETPROCESSAFFINITYMASK)
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#endif /* HAVE_SETPROCESSAFFINITYMASK */
|
#endif /* HAVE_SETPROCESSAFFINITYMASK */
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user