Browse Source

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.
au-ny-api
Carlo Bramini 2 years ago
committed by Leland Lucius
parent
commit
3dfc9d6dec
  1. 2
      lib-src/libnyquist/nyquist/xlisp/security.c
  2. 2
      lib-src/libnyquist/nyquist/xlisp/xlisp.h

2
lib-src/libnyquist/nyquist/xlisp/security.c

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

2
lib-src/libnyquist/nyquist/xlisp/xlisp.h

@ -161,7 +161,7 @@ extern long ptrtoabs();
#endif
/* Linux on Pentium */
#if defined(__linux__) || defined(__GLIBC__)
#if defined(__linux__) || defined(__GLIBC__) || defined(__CYGWIN__)
#define AFMT "%p"
#include <inttypes.h>
#include <endian.h>

Loading…
Cancel
Save