Ignore:
Timestamp:
May 14, 2011, 3:06:27 AM (12 years ago)
Author:
Sam Hocevar
Message:

build: add a --disable-network compilation flag and get rid of most of
the CELLOS_LV2 ifdefs.

Location:
abuse/trunk/src/net
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/Makefile.am

    r524 r651  
    1 ## Process this file with automake to produce Makefile.in
     1
    22noinst_LIBRARIES = libnet.a
    33
     
    1414
    1515CPPFLAGS = @CPPFLAGS@ -DNO_CHECK
     16
  • abuse/trunk/src/net/engine.cpp

    r643 r651  
    1313#endif
    1414
     15#if HAVE_NETWORK
    1516#include "common.h"
    1617
     
    12501251}
    12511252
    1252 
    1253 
    1254 
    1255 
    1256 
     1253#endif // HAVE_NETWORK
     1254
  • abuse/trunk/src/net/fileman.cpp

    r555 r651  
    1313#endif
    1414
     15#if HAVE_NETWORK
     16
    1517#include <stdio.h>
    1618#include <stdlib.h>
     
    518520  else return 0;
    519521}
     522
     523#endif // HAVE_NETWORK
     524
  • abuse/trunk/src/net/gclient.cpp

    r555 r651  
    2020#include <sys/types.h>
    2121#include <string.h>
    22 #include <signal.h>
    2322
    2423#include "common.h"
  • abuse/trunk/src/net/gserver.cpp

    r646 r651  
    2020#include <sys/types.h>
    2121#include <string.h>
    22 #include <signal.h>
    2322
    2423#include "common.h"
  • abuse/trunk/src/net/netdrv.cpp

    r555 r651  
    1212#   include "config.h"
    1313#endif
     14
     15#if HAVE_NETWORK
    1416
    1517#include <stdio.h>
     
    599601  return 0;
    600602}
     603
     604#endif // HAVE_NETWORK
     605
  • abuse/trunk/src/net/netfile.cpp

    r555 r651  
    1313#endif
    1414
     15#if HAVE_NETWORK
     16
    1517#include "common.h"
    1618
     
    1820#include "../inc/netface.h"
    1921#include "engine.h"
    20 
    2122
    2223nfs_client *first_nfs_client=NULL;
     
    473474}
    474475
    475 
     476#endif // HAVE_NETWORK
     477
  • abuse/trunk/src/net/sock.cpp

    r555 r651  
    2222net_protocol *net_protocol::first=0;
    2323
     24#if HAVE_NETWORK
    2425// connect to an explictedly named address
    2526// first try to get the address and then try to connect
    2627// return NULL if either fail.  This method does not need to be implemented
    2728// in sub-classes
    28 
    2929net_socket *net_protocol::connect_to_server(char const *&server_name, int port, int force_port, net_socket::socket_type sock_type)
    3030{
     
    3535  return s;
    3636}
     37#endif
    3738
  • abuse/trunk/src/net/tcpip.cpp

    r555 r651  
    1212#   include "config.h"
    1313#endif
     14
     15#if HAVE_NETWORK
    1416
    1517#ifdef _AIX
     
    683685//}}}
    684686
     687#endif
     688
  • abuse/trunk/src/net/undrv.cpp

    r643 r651  
    1212#   include "config.h"
    1313#endif
     14
     15#if HAVE_NETWORK
    1416
    1517#include <stdio.h>
     
    200202    fman->process_net();
    201203  }
    202 
    203 
    204 }
    205 
     204}
     205
     206#endif // HAVE_NETWORK
     207
Note: See TracChangeset for help on using the changeset viewer.