mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-25 22:41:31 +02:00
44 lines
990 B
Diff
44 lines
990 B
Diff
Description:minor corrections to compile in Alpine Linux
|
|
Author: Diaz Devera Victor <vitronic2@gmail.com>
|
|
Last-Update: 2014-09-15
|
|
|
|
--- a/libcore/kb.h
|
|
+++ b/libcore/kb.h
|
|
@@ -1,6 +1,6 @@
|
|
#ifndef __LIBCORE_KB_H__
|
|
#define __LIBCORE_KB_H__
|
|
-
|
|
+#include <stdint.h>
|
|
|
|
/*
|
|
* XXX this strictly shouldn't be here!
|
|
--- a/libcore/tools.h
|
|
+++ b/libcore/tools.h
|
|
@@ -1,5 +1,6 @@
|
|
#ifndef __LIBCORE_TOOLS_H__
|
|
#define __LIBCORE_TOOLS_H__
|
|
+#include <sys/time.h>
|
|
|
|
#define MB ((size_t)1024*1024)
|
|
extern double toMB(size_t size);
|
|
--- a/libmem/MemPool.h
|
|
+++ b/libmem/MemPool.h
|
|
@@ -1,5 +1,6 @@
|
|
#ifndef __LIBMEM_MEMPOOL_H__
|
|
#define __LIBMEM_MEMPOOL_H__
|
|
+#include <sys/time.h>
|
|
|
|
/* object to track per-action memory usage (e.g. #idle objects) */
|
|
struct _MemMeter {
|
|
--- a/src/acl.c
|
|
+++ b/src/acl.c
|
|
@@ -3176,7 +3176,7 @@
|
|
#if defined(_SQUID_NETBSD_) || defined(_SQUID_OPENBSD_)
|
|
#undef free
|
|
#endif
|
|
-#include <sys/sysctl.h>
|
|
+#include <linux/sysctl.h>
|
|
#endif
|
|
#ifdef _SQUID_LINUX_
|
|
#include <net/if_arp.h>
|