Fix the simulator build.
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp
index 9928a75..4eb9317 100644
--- a/modules/gralloc/gralloc.cpp
+++ b/modules/gralloc/gralloc.cpp
@@ -179,6 +179,7 @@
 static int init_pmem_area_locked(private_module_t* m)
 {
     int err = 0;
+#if HAVE_ANDROID_OS // should probably define HAVE_PMEM somewhere
     int master_fd = open("/dev/pmem", O_RDWR, 0);
     if (master_fd >= 0) {
         
@@ -206,6 +207,9 @@
         err = -errno;
     }
     return err;
+#else
+    return -1;
+#endif
 }
 
 static int init_pmem_area(private_module_t* m)