[Python-bugs-list] socketmodule.c: netinet/tcp.h, not on BeOS (PR#330)

donn@oz.net donn@oz.net
Tue, 16 May 2000 02:56:46 -0400 (EDT)

Full_Name: Donn Cave
Version: 1.6a2
OS: BeOS 5.0
Submission from: sense-donn-169.oz.net (

BeOS (up to 5.0) lacks <netinet/tcp.h>.

This is a low priority, in my opinion.  Be has a major upgrade to their
network support in the works presently, and this is just a stop-gap until
then.  I have no idea how long that's going to be, though!

  #include <netdb.h>
  #include <sys/socket.h>
  #include <netinet/in.h>
+ #ifndef __BEOS__
  #include <netinet/tcp.h>
+ #endif

  /* Headers needed for inet_ntoa() and inet_addr() */
  #ifdef __BEOS__