summaryrefslogtreecommitdiff
path: root/apt-pkg/missing.h
diff options
context:
space:
mode:
authorJaywalker <jwilliams@nsllc.com>2018-02-06 17:48:39 -0600
committerSam Bingner <sam@bingner.com>2019-08-17 12:54:19 -1000
commit5ab68bbd1aca5b9b3cf23f88d60eebbf84d38e7c (patch)
tree0ab89ff18c0b7cfd31ec5bf113ac160dcf212add /apt-pkg/missing.h
parentf8293b36df6ba2ccc56334c4a4f2477275732577 (diff)
Added seemingly missing files
Diffstat (limited to 'apt-pkg/missing.h')
-rw-r--r--apt-pkg/missing.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/apt-pkg/missing.h b/apt-pkg/missing.h
new file mode 100644
index 000000000..441b47ce1
--- /dev/null
+++ b/apt-pkg/missing.h
@@ -0,0 +1,26 @@
+#define _GNU_SOURCE
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <inttypes.h>
+#include <errno.h>
+#include <string.h>
+
+#ifndef PKGLIB_MISSING_H
+#define PKGLIB_MISSING_H
+
+extern "C" {
+ void *memrchr(const void *s, int c, size_t n);
+ void *rawmemchr(const void *s, int c);
+ char *strchrnul(const char *s, int c);
+ int getservbyport_r(int port, const char *prots, struct servent *se, char *buf, size_t buflen, struct servent **res);
+}
+
+typedef void (*sighandler_t)(int);
+
+extern char **environ;
+
+#define AI_IDN 0x0040
+
+#endif
+