summaryrefslogtreecommitdiff
path: root/src/oid.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2008-12-03 23:54:47 +0000
committerShawn O. Pearce <spearce@spearce.org>2008-12-09 08:38:10 -0800
commitb3be0fc7562d51df415c14abf671deb37d8f89ef (patch)
tree7e822f212370d60dc701504a5512544891f3ae05 /src/oid.c
parent5ee2fe777c41d9ad9e7eb9fece56fe21f830c5cd (diff)
downloadlibgit2-b3be0fc7562d51df415c14abf671deb37d8f89ef.tar.gz
Fix an "implicit function definition" warning on cygwin
In particular, the warning relates to malloc(), which is declared in <stdlib.h>. This header is now included, indirectly, via the "common.h" header. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/oid.c')
-rw-r--r--src/oid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oid.c b/src/oid.c
index 5f3408511..bca03c4e4 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -23,6 +23,7 @@
* Boston, MA 02110-1301, USA.
*/
+#include "common.h"
#include "git/oid.h"
#include <string.h>