summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorSimon 'corecode' Schubert <corecode@fs.ei.tum.de>2007-01-17 08:07:23 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-18 22:11:50 (GMT)
commitbb7910319412aea9fecc3625dfcae23da84ee5f1 (patch)
tree9aae7ca11a113aa1975e116a6ad82879e853caea /git-compat-util.h
parent917a8f891f1ceeb48609f99ba3b32e022ac766f9 (diff)
downloadgit-bb7910319412aea9fecc3625dfcae23da84ee5f1.zip
git-bb7910319412aea9fecc3625dfcae23da84ee5f1.tar.gz
git-bb7910319412aea9fecc3625dfcae23da84ee5f1.tar.bz2
Use fixed-size integers for the on-disk pack structure.
Plain integer types without a fixed size can vary between platforms. Even though all common platforms use 32-bit ints, there is no guarantee that this won't change at some point. Furthermore, specifying an integer type with explicit size makes the definition of structures more obvious. Signed-off-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 8d244d0..bf3ceb8 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -46,6 +46,7 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <pwd.h>
+#include <stdint.h>
#undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
#include <grp.h>
#define _ALL_SOURCE 1