mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-13 00:55:29 -04:00
Fix test code to can be built on alpine
Signed-off-by: joseph <joseph@jc-lab.net>
This commit is contained in:
parent
f0f2294f57
commit
6113af68c5
5
ChangeLog.d/do-not-use-obsolete-header.txt
Normal file
5
ChangeLog.d/do-not-use-obsolete-header.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Bugfix
|
||||||
|
* Don't use the obsolete header path sys/fcntl.h in unit tests.
|
||||||
|
These header files cause compilation errors in musl.
|
||||||
|
Fixes #4969.
|
||||||
|
|
@ -9,11 +9,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_PLATFORM_IS_UNIXLIKE)
|
#if defined(MBEDTLS_PLATFORM_IS_UNIXLIKE)
|
||||||
#include <sys/fcntl.h>
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user