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>
This commit is contained in:
parent
0921649702
commit
538a375097
1 changed files with 5 additions and 0 deletions
5
autofd.h
5
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 @@ struct OutputFd {
|
|||
int *fd_ = NULL;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue