missing.h 554 B

123456789101112131415161718192021222324252627
  1. #define _GNU_SOURCE
  2. #include <sys/socket.h>
  3. #include <netinet/in.h>
  4. #include <netdb.h>
  5. #include <inttypes.h>
  6. #include <errno.h>
  7. #include <string.h>
  8. #ifndef PKGLIB_MISSING_H
  9. #define PKGLIB_MISSING_H
  10. extern "C" {
  11. void *memrchr(const void *s, int c, size_t n);
  12. void *rawmemchr(const void *s, int c);
  13. char *strchrnul(const char *s, int c);
  14. int getservbyport_r(int port, const char *prots, struct servent *se, char *buf, size_t buflen, struct servent **res);
  15. }
  16. typedef void (*sighandler_t)(int);
  17. extern char **environ;
  18. #define AI_IDN 0x0040
  19. #endif