message: Also implement NNMemory for Unix targets.
diff: @@ -28,8 +28,10 @@ limitations under the License.
  #include "tensorflow/lite/nnapi/nnapi_implementation.h"
  #ifdef __ANDROID__
  -#include <sys/mman.h>
  #include <sys/system_properties.h>
  +#endif
  +#if defined __ANDROID__ || defined __unix__
  +#include <sys/mman.h>
  #include <unistd.h>
  #endif
  @@ -69,7 +71,7 @@ struct NNFreeCompilation {
  // Manage NNAPI shared memory handle
  class NNMemory {
  public:
  -#ifdef __ANDROID__
  +#if defined __ANDROID__ || defined __unix__
  NNMemory(const NnApi* nnapi, const char* name, size_t size) {
  nnapi_ = nnapi;
  byte_size_ = size;
  @@ -84,7 +86,7 @@ class NNMemory {
  #endif
  ~NNMemory() {
  -#ifdef __ANDROID__
  +#if defined __ANDROID__ || defined __unix__
  if (data_ptr_) {
  munmap(data_ptr_, byte_size_);
  }
  @@ -99,7 +101,7 @@ class NNMemory {
  uint8_t* get_data_ptr() { return data_ptr_; }
  private:
  -#ifdef __ANDROID__
  +#if defined __ANDROID__ || defined __unix__
  const NnApi* nnapi_;
  int fd_ = 0;
  size_t byte_size_ = 0;
  