Changeset 82 in Main for trunk


Ignore:
Timestamp:
Sep 19, 2024, 9:47:40 PM (2 months ago)
Author:
Nishi
Message:

trying to add haiku support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r74 r82  
    132132#ifdef NO_IPV6
    133133                addresses[i].sin_family = AF_INET;
     134#ifdef __HAIKU__
     135                if((addresses[i].sin_addr.s_addr = gethostaddr()) == -1){
     136                        addresses[i].sin_addr.s_addr = INADDR_ANY;
     137                }
     138#else
    134139                addresses[i].sin_addr.s_addr = INADDR_ANY;
     140#endif
    135141                addresses[i].sin_port = htons(config.ports[i]);
    136142#else
Note: See TracChangeset for help on using the changeset viewer.