blob: 441b47ce11dde5915b60bba0fa309d10e55c9d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|