lib: only include fetch.h where required

This results in a lot of places where limits.h was missing, so
this diff is larger than necessary.
This commit is contained in:
Duncan Overbruck
2022-12-22 16:46:55 +01:00
parent be7e532c3c
commit 2deb156beb
11 changed files with 40 additions and 28 deletions

View File

@@ -23,14 +23,15 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <dirent.h>
#include <libgen.h>
#include <fcntl.h>
#include <unistd.h>
#include "xbps_api_impl.h"