drm_hwcomposer: Protect autofd.h with #ifdef/#define
So we don't end up redeclaring its classes.
BUG=None
TEST=Compiles
Change-Id: Ic15ba4412f11bad8ef7ec4f68af6ad87e0d674cc
Signed-off-by: Sean Paul <seanpaul@chromium.org>
diff --git a/autofd.h b/autofd.h
index bc5127a..1edc9c5 100644
--- a/autofd.h
+++ b/autofd.h
@@ -14,6 +14,9 @@
* limitations under the License.
*/
+#ifndef ANDROID_AUTO_FD_H_
+#define ANDROID_AUTO_FD_H_
+
#include <unistd.h>
namespace android {
@@ -99,3 +102,5 @@
int *fd_ = NULL;
};
}
+
+#endif