summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2024-04-15 09:07:41 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2024-04-15 09:07:41 +0100
commitdd4c0109a93eee6830d55612f106a711dfd83791 (patch)
tree488d8f4655491e51abc20b9de2fb70de2eaae64a
parent43530d4397f94beed27acb8f5610338b6dbcc05a (diff)
Missing headers for Android, from Biswapriyo Nath.
-rw-r--r--compat.h5
-rw-r--r--compat/htonll.c1
-rw-r--r--compat/ntohll.c1
-rw-r--r--compat/setproctitle.c1
4 files changed, 8 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 720cd909..f33dcf1a 100644
--- a/compat.h
+++ b/compat.h
@@ -289,6 +289,11 @@ void explicit_bzero(void *, size_t);
int getdtablecount(void);
#endif
+#ifndef HAVE_GETDTABLESIZE
+/* getdtablesize.c */
+int getdtablesize(void);
+#endif
+
#ifndef HAVE_CLOSEFROM
/* closefrom.c */
void closefrom(int);
diff --git a/compat/htonll.c b/compat/htonll.c
index aef65983..86f34b46 100644
--- a/compat/htonll.c
+++ b/compat/htonll.c
@@ -14,6 +14,7 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <arpa/inet.h>
#include <sys/types.h>
#include "compat.h"
diff --git a/compat/ntohll.c b/compat/ntohll.c
index c2fe1bb7..b1f77ca7 100644
--- a/compat/ntohll.c
+++ b/compat/ntohll.c
@@ -14,6 +14,7 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <arpa/inet.h>
#include <sys/types.h>
#include "compat.h"
diff --git a/compat/setproctitle.c b/compat/setproctitle.c
index e72ae274..99fad55c 100644
--- a/compat/setproctitle.c
+++ b/compat/setproctitle.c
@@ -17,6 +17,7 @@
#include <sys/types.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <string.h>
#include "compat.h"