just include fcntl.h not sys/fcntl.h
[oweals/busybox.git] / archival / libunarchive / get_header_tar_lzma.c
1 /*
2  * Small lzma deflate implementation.
3  * Copyright (C) 2006  Aurelien Jacobs <aurel@gnuage.org>
4  *
5  * Licensed under GPL v2, see file LICENSE in this tarball for details.
6  */
7
8 #include "unarchive.h"
9
10 char get_header_tar_lzma(archive_handle_t * archive_handle)
11 {
12         /* Can't lseek over pipes */
13         archive_handle->seek = seek_by_char;
14
15         archive_handle->src_fd = open_transformer(archive_handle->src_fd, unlzma);
16         archive_handle->offset = 0;
17         while (get_header_tar(archive_handle) == EXIT_SUCCESS);
18
19         /* Can only do one file at a time */
20         return EXIT_FAILURE;
21 }
22
23 /* vi:set ts=4: */