Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-15 18:40:32 -0500
committerDan McGee <dan@archlinux.org>2011-04-15 18:40:32 -0500
commit202ade1398ca57070e56de24c3639f3048ecd784 (patch)
tree80dd701c713014ccd824ee8860daf3a5df925e60 /lib/libalpm/package.h
parent4ffda3f05b034b55eb5159e0268a34c14b46e686 (diff)
Include "config.h" in header files using off_t
This makes it absolutely dead easy to ensure off_t has the same length in all compilation units. I just spent 2.5 hours bashing my head on an issue related to this so damn it I'm fixing it for good. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 35e4500d..c84e2221 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -24,6 +24,8 @@
#ifndef _ALPM_PACKAGE_H
#define _ALPM_PACKAGE_H
+#include "config.h" /* ensure off_t is correct length */
+
#include <sys/types.h> /* off_t */
#include <time.h> /* time_t */