add more spacing
[personal-kdebase.git] / workspace / kdm / backend / dm_socket.h
blob56a39fd0e324fd726c5246472bd5a0e6fc5501a0
1 /************************************************************
3 Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
4 Copyright 2002-2004 Oswald Buddenhagen <ossi@kde.org>
6 All Rights Reserved
8 Permission is hereby granted, free of charge, to any person obtaining a
9 copy of this software and associated documentation files (the
10 "Software"), to deal in the Software without restriction, including
11 without limitation the rights to use, copy, modify, merge, publish,
12 distribute, sublicense, and/or sell copies of the Software, and to
13 permit persons to whom the Software is furnished to do so, subject to
14 the following conditions:
16 The above copyright notice and this permission notice shall be included
17 in all copies or substantial portions of the Software.
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22 IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
23 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 Except as contained in this notice, the name(s) of the above copyright
28 holders shall not be used in advertising or otherwise to promote the
29 sale, use or other dealings in this Software without prior written
30 authorization.
32 ********************************************************/
34 #ifndef _DM_SOCKET_H_
35 #define _DM_SOCKET_H_ 1
37 #ifndef __Lynx__
38 # include <sys/socket.h>
39 #else
40 # include <socket.h>
41 #endif
43 #ifdef TCPCONN
44 # include <netinet/in.h>
45 #endif
47 #ifdef UNIXCONN
48 # ifndef __Lynx__
49 # include <sys/un.h>
50 # else
51 # include <un.h>
52 # endif
53 #endif
55 #ifdef DNETCONN
56 # include <netdnet/dn.h>
57 #endif
59 #if (defined(__svr4__) && !defined(__sun__)) && defined(SIOCGIFCONF)
60 # define SYSV_SIOCGIFCONF
61 int ifioctl( int fd, int cmd, char *arg );
62 #else
63 # define ifioctl ioctl
64 #endif
66 #ifdef BSD
67 # if (BSD >= 199103)
68 # define VARIABLE_IFREQ
69 # endif
70 #endif
72 #endif /* _DM_SOCKET_H_ */