1
0
Fork 0

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:
Sean Paul 2016-03-24 14:50:53 -04:00
parent 0921649702
commit 538a375097

View file

@ -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