Port of merge request 49 to newlib

Wayne Porter made !49 which added Cygwin support to the master branch
This is the port of those changes to newlib
This commit is contained in:
Craig Small
2017-08-19 23:05:22 +10:00
parent aab30a0aad
commit d8fb86dbc5
7 changed files with 172 additions and 18 deletions

View File

@@ -29,6 +29,9 @@
#include <unistd.h>
#include <fcntl.h>
#ifdef __CYGWIN__
#include <sys/param.h>
#endif
#include "alloc.h"
#include "version.h"
#include "sysinfo.h" /* include self to verify prototypes */
@@ -74,7 +77,9 @@ static char buf[8192];
#define SET_IF_DESIRED(x,y) do{ if(x) *(x) = (y); }while(0)
/* return minimum of two values */
#ifndef __CYGWIN__
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#endif
/*
* procps_hertz_get: