1 /************************************************************
3 Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
4 Copyright 2002-2004 Oswald Buddenhagen <ossi@kde.org>
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
32 ********************************************************/
35 #define _DM_SOCKET_H_ 1
38 # include <sys/socket.h>
44 # include <netinet/in.h>
56 # include <netdnet/dn.h>
59 #if (defined(__svr4__) && !defined(__sun__)) && defined(SIOCGIFCONF)
60 # define SYSV_SIOCGIFCONF
61 int ifioctl( int fd
, int cmd
, char *arg
);
63 # define ifioctl ioctl
68 # define VARIABLE_IFREQ
72 #endif /* _DM_SOCKET_H_ */