src/platform_unix.h
branchkrista_local_windows
changeset 1125 89e75396c69a
parent 926 95247f30b919
child 1126 129b561095a6
     1.1 --- a/src/platform_unix.h	Tue Aug 02 12:55:50 2016 +0200
     1.2 +++ b/src/platform_unix.h	Wed Aug 31 17:26:59 2016 +0200
     1.3 @@ -5,6 +5,7 @@
     1.4  #include <unistd.h>
     1.5  #include <strings.h>
     1.6  #include <sys/select.h>
     1.7 +#include <regex.h>
     1.8  
     1.9  #ifdef __cplusplus
    1.10  extern "C" {
    1.11 @@ -43,6 +44,15 @@
    1.12  #if !defined(BSD) && !defined(__APPLE__)
    1.13  size_t strlcpy(char* dst, const	char* src, size_t size);
    1.14  size_t strlcat(char* dst, const	char* src, size_t size);
    1.15 +
    1.16 +// N.B. This is ifdef'd out because NDK users sometimes have trouble finding regex functions in
    1.17 +//      the library in spite of the inclusion of regex.h - this is a FIXME, but since iOS is
    1.18 +//      *currently* the only netpgp user, we will ifdef this so that we don't block Android.
    1.19 +#ifdef USE_NETPGP
    1.20 +int regnexec(const regex_t* preg, const char* string,
    1.21 +             size_t len, size_t nmatch, regmatch_t pmatch[], int eflags);
    1.22 +#endif
    1.23 +
    1.24  #endif
    1.25  
    1.26  #ifdef __cplusplus