Merge "Make hidl-gen work wih symlinks in order to use it in bazel." am: a598098408 am: 3b79d1de47 am: 70c87b7940 am: d9b32a6352

Original change: https://android-review.googlesource.com/c/platform/system/tools/hidl/+/2127960

Change-Id: I95c9bce5459b215b2409043571cb80d5da126dfd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/Coordinator.cpp b/Coordinator.cpp
index 9c7c13f..4cd9f26 100644
--- a/Coordinator.cpp
+++ b/Coordinator.cpp
@@ -472,8 +472,8 @@
             if ((sb.st_mode & S_IFMT) != S_IFREG) {
                 continue;
             }
-        } else if (ent->d_type != DT_REG) {
-             continue;
+        } else if (ent->d_type != DT_REG && ent->d_type != DT_LNK) {
+            continue;
         }
 
         const auto suffix = ".hal";