You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
488B

  1. #ifndef BARPA_INET_H
  2. #define BARPA_INET_H
  3. #include "../config.h"
  4. #ifdef CONFIG_BEOS_NETSERVER
  5. # include <socket.h>
  6. int inet_aton (const char * str, struct in_addr * add);
  7. # define PF_INET AF_INET
  8. # define SO_SNDBUF 0x40000001
  9. /* fake */
  10. struct ip_mreq {
  11. struct in_addr imr_multiaddr; /* IP multicast address of group */
  12. struct in_addr imr_interface; /* local IP address of interface */
  13. };
  14. #include <netdb.h>
  15. #else
  16. # include <arpa/inet.h>
  17. #endif
  18. #endif /* BARPA_INET_H */