Win - PGC-F-0206-Can't find include file sys/random.h

I use PGI under WIN 7 Pro. I get this message when I attempt to compile a test program.

pgcc -Minfo=all -ta=tesla -fast -c main.c
PGC-F-0206-Can’t find include file sys/random.h (main.c: 6)
PGC/x86-64 Windows 18.4-0: compilation aborted

main.c

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <string.h>
#include <sys/random.h>

int main(void)
{
char randIn[32];
getrandom(randIn, 32, GRND_RANDOM);
}

in bin directory (C:\Program Files\PGICE\win64\18.4\bin), the localrc file should look like this:
set PSDK=“C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC”;
set WSDK=“C:/Program Files (x86)/Windows Kits/10”;
set MSC_VER=1700;
set WSDK_VERSION=10.0.15063.0;
set PGI_OT_VER=__PGI_TOOLS14;
set PGICUDAINC_OT=$PGICUDAROOT/include_acc/OT_14;
set OEM_INFO=64-bit target on x86-64 Windows $INFOTPVAL;
set COMPBASE64=“C:/Program Files/PGICE”;
set PROGRAMFILES32=“C:/Program Files (x86)”;

Cygwin is installed in D:\cygwin64.
The sys/random.h header file is located in /cygdrive/d/cygwin64/usr/include

with gcc I got no error.
pc@Dev-PC /cygdrive/d/Developpement/
$ make test
gcc -c main.c
gcc main.o -o test

Hi Christian,

PGI only provides native Windows compilers so therefor we can’t use the Cygwin system header files. You’ll need to port your codes to remove any UNIX system calls.

-Mat

OKAY. Thank you. This is not going to be simple to port codes…