summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2015-04-22 08:45:01 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-04-22 10:50:31 +0300
commitbe31eb24d8724b65929d0b5a9d037cde565c9dfe (patch)
tree8c8c88f28917e0868cf0394388447030260b9102 /src
parent0ed9a55b7dba649d56c3e399daa98a7aadfd4b5f (diff)
downloadapk-tools-be31eb24d8724b65929d0b5a9d037cde565c9dfe.tar.gz
apk-tools-be31eb24d8724b65929d0b5a9d037cde565c9dfe.tar.bz2
apk-tools-be31eb24d8724b65929d0b5a9d037cde565c9dfe.tar.xz
apk-tools-be31eb24d8724b65929d0b5a9d037cde565c9dfe.zip
io: fix compiler error by including stdint.h
According to the C standards, uint32_t is defined in stdint.h. Presumably apk is usually built against C libraries where stdint.h is indirectly included through another header file, but this isn't the case with the version of glibc which I am using.
Diffstat (limited to 'src')
-rw-r--r--src/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index fa8a048..da26a57 100644
--- a/src/io.c
+++ b/src/io.c
@@ -16,6 +16,7 @@
#include <unistd.h>
#include <malloc.h>
#include <dirent.h>
+#include <stdint.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/stat.h>