Ignore:
Timestamp:
Apr 29, 2011, 9:18:23 PM (12 years ago)
Author:
Sam Hocevar
Message:

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/tcpip.h

    r494 r555  
    1 #include "sock.h"
     1/*
     2 *  Abuse - dark 2D side-scrolling platform game
     3 *  Copyright (c) 1995 Crack dot Com
     4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
     5 *
     6 *  This software was released into the Public Domain. As with most public
     7 *  domain software, no warranty is made or implied by Crack dot Com, by
     8 *  Jonathan Clark, or by Sam Hocevar.
     9 */
    210
    311#include <stdlib.h>
    412#include <fcntl.h>
    5 #include <sys/ioctl.h>
    6 #include <sys/stat.h>
     13#if defined HAVE_SYS_IOCTL_H
     14#   include <sys/ioctl.h>
     15#   include <sys/stat.h>
     16#   include <sys/types.h>
     17#include <signal.h>
     18#endif
    719#include <sys/types.h>
    8 #include <signal.h>
    9 #include <sys/types.h>
     20
     21#if defined __APPLE__ && !defined __MACH__
     22#   include "GUSI.h"
     23#elif defined HAVE_NETINET_IN_H
     24#   include <netdb.h>
     25#   include <netinet/in.h>
     26#   include <stdio.h>
     27#   include <string.h>
     28#   include <sys/time.h>
     29#   include <sys/ipc.h>
     30#   include <sys/shm.h>
     31#   include <sys/socket.h>
     32#   include <unistd.h>
     33#   ifdef HAVE_BSTRING_H
     34#       include <bstring.h>
     35#   else
     36#       include <sys/select.h>
     37#   endif
     38#endif
     39
     40#include "sock.h"
    1041#include "isllist.h"
    1142
    12 #if (defined(__APPLE__) && !defined(__MACH__))
    13 #include "GUSI.h"
    14 #else
    15 #include <netdb.h>
    16 #include <netinet/in.h>
    17 #include <stdio.h>
    18 #include <string.h>
    19 #include <sys/time.h>
    20 #include <sys/ipc.h>
    21 #include <sys/shm.h>
    22 #include <sys/socket.h>
    23 #include <unistd.h>
    24 #ifdef HAVE_BSTRING_H
    25 #include <bstring.h>
    26 #else
    27 #include <sys/select.h>
    28 #endif
    29 #endif
    30 
    31 extern fd_set master_set,master_write_set,read_set,exception_set,write_set;
     43extern fd_set master_set, master_write_set, read_set, exception_set, write_set;
    3244
    3345class ip_address : public net_address
Note: See TracChangeset for help on using the changeset viewer.