Add attr.h include
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index c2ddb5d..6e222dc 100644
--- a/include/git2/deprecated.h
+++ b/include/git2/deprecated.h
@@ -7,6 +7,7 @@
#ifndef INCLUDE_git_deprecated_h__
#define INCLUDE_git_deprecated_h__
+#include "attr.h"
#include "config.h"
#include "common.h"
#include "blame.h"