With https://github.com/rnpgp/rnp/pull/1232 being merged upstream, we can
remove most of the workarounds from the niwcompat directory.
What remains is dirent.h, which RNP pulls in via vcpkg and an empty getopt.h
header file.
getopt itself is not required by librnp.so, it's only used by some commandline
utilities. However, uniwin.h imports it unconditionally so an empty header file
is included for compatibilty.
Differential Revision: https://phabricator.services.mozilla.com/D90161
--HG--
extra : moz-landing-system : lando
These are missing defines and a few functions that are used by
the RNP library but are not part of the Microsoft runtime.
dirent.h is an MIT licensed "header" file that contains opendir(),
readdir(), and closedir() for Windows. Copyright and license are
included in the file itself.
sys/time.h contains an implementation of gettimeofday() for Windows
that's used in rnp/src/lib/crypto/s2k.cpp.
Differential Revision: https://phabricator.services.mozilla.com/D70739
--HG--
extra : moz-landing-system : lando