tried compiling gnu patch in ubuntu 14 using mingw
in mingw
i have these errors
CC util.o
util.c: In function 'set_file_attributes':
util.c:258:4: warning: implicit declaration of function 'getegid' [-Wimplicit-function-declaration]build using ./configure --host=x86_64-w64-mingw32 --prefix=/tmp/patch-2.7-mingw64
egid = getegid ();
^
util.c:266:4: warning: implicit declaration of function 'lchown' [-Wimplicit-function-declaration]
&& lchown (to, uid, gid) != 0
^
util.c: In function 'exit_with_signal':
util.c:1206:16: error: 'SIG_UNBLOCK' undeclared (first use in this function)
sigprocmask (SIG_UNBLOCK, &s, (sigset_t ) 0);
^
util.c:1109:5: note: in definition of macro 'sigprocmask'
((how) == SIG_BLOCK \
^
util.c:1206:16: note: each undeclared identifier is reported only once for each function it appears in
sigprocmask (SIG_UNBLOCK, &s, (sigset_t ) 0);
^
util.c:1109:5: note: in definition of macro 'sigprocmask'
((how) == SIG_BLOCK \
^
util.c:1109:13: error: 'SIG_BLOCK' undeclared (first use in this function)
((how) == SIG_BLOCK \
^
util.c:1206:3: note: in expansion of macro 'sigprocmask'
sigprocmask (SIG_UNBLOCK, &s, (sigset_t *) 0);
^
make[2]: [util.o] Error 1
make[2]: Leaving directory /home/baselsayeh/.local/share/Trash/files/patch-2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
/home/baselsayeh/.local/share/Trash/files/patch-2.7'
make: [all] Error 2
baselsayeh@baselsayeh-Aspire-5750:~/Desktop/patch-2.7$
any help??
build using ./configure --host=x86_64-w64-mingw32 --prefix=/tmp/patch-2.7-mingw64
patch is using *nix function calls, it will never build for Windows.