1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

[NYQUIST] Fix build on CYGWIN. (#557)

* [NYQUIST] Fix build on CYGWIN

Cygwin requires to include unistd.h for building without errors.

* [NYQUIST] Fix build on CYGWIN.

Cygwin requires to include endian.h to build without errors.
This commit is contained in:
Carlo Bramini 2020-06-03 20:13:41 +02:00 committed by GitHub
parent 93d4e3a463
commit 717ceb6525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*/
#include <stdlib.h>
#if defined(UNIX) || defined(__APPLE__)
#if defined(UNIX) || defined(__APPLE__) || defined(__CYGWIN__)
#include <unistd.h>
#endif
#ifdef WIN32

View File

@ -152,7 +152,7 @@ extern long ptrtoabs();
#endif
/* Linux on Pentium */
#if defined(__linux__) || defined(__GLIBC__)
#if defined(__linux__) || defined(__GLIBC__) || defined(__CYGWIN__)
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define XL_LITTLE_ENDIAN