~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/network/nSocket.cpp

  • Committer: z-man
  • Date: 2007-02-01 12:29:03 UTC
  • Revision ID: svn-v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs:7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Fbranches%2F0.2.8%2Farmagetronad:7093
Added include reqired on Solaris 2.8 that doesn't hurt Linux and hopefully doesn't hurt other Unices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
#ifndef WIN32
49
49
#include <arpa/inet.h> 
 
50
#include <netinet/in_systm.h>
50
51
#include <netinet/in.h>
51
52
#include <netinet/ip.h>
52
53
#include <netdb.h>
1508
1509
#ifndef WIN32
1509
1510
    char tos = IPTOS_LOWDELAY;
1510
1511
 
1511
 
#   ifdef MACOSX
1512
1512
    int ret = setsockopt( socket_, IPPROTO_IP, IP_TOS, &tos, sizeof(char) );
1513
 
#   else
1514
 
    int ret = setsockopt( socket_, SOL_IP, IP_TOS, &tos, sizeof(char) );
1515
 
#   endif
1516
1513
 
1517
1514
    // remove this error reporting some time later, the success is not critical
1518
1515
    if ( ret != 0 )