summaryrefslogtreecommitdiffstats
path: root/lib/libelf/elf_begin.c
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2010-07-21 09:33:45 +0000
committerkaiw <kaiw@FreeBSD.org>2010-07-21 09:33:45 +0000
commitf349ce0e9e0d9b00fd5fa016a5b7cd1ec528a01c (patch)
treeaeb414773bb830f40d4c48ce60a15a95637b22db /lib/libelf/elf_begin.c
parent07c19657cd99341c19838c518fe7dee71e997597 (diff)
downloadFreeBSD-src-f349ce0e9e0d9b00fd5fa016a5b7cd1ec528a01c.zip
FreeBSD-src-f349ce0e9e0d9b00fd5fa016a5b7cd1ec528a01c.tar.gz
Use <unistd.h> to declare the prototype for ftruncate().
Obtained from: elftoolchain MFC after: 1 month
Diffstat (limited to 'lib/libelf/elf_begin.c')
-rw-r--r--lib/libelf/elf_begin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libelf/elf_begin.c b/lib/libelf/elf_begin.c
index d59042c..7879dbe 100644
--- a/lib/libelf/elf_begin.c
+++ b/lib/libelf/elf_begin.c
@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include <ar.h>
#include <ctype.h>
#include <libelf.h>
+#include <unistd.h>
#include "_libelf.h"
OpenPOWER on IntegriCloud