~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kdm/backend/dm_socket.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/************************************************************
 
2
 
 
3
Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
 
4
Copyright 2002-2004 Oswald Buddenhagen <ossi@kde.org>
 
5
 
 
6
   All Rights Reserved
 
7
 
 
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:
 
15
 
 
16
The above copyright notice and this permission notice shall be included
 
17
in all copies or substantial portions of the Software.
 
18
 
 
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.
 
26
 
 
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.
 
31
 
 
32
********************************************************/
 
33
 
 
34
#ifndef _DM_SOCKET_H_
 
35
#define _DM_SOCKET_H_ 1
 
36
 
 
37
#ifndef __Lynx__
 
38
# include <sys/socket.h>
 
39
#else
 
40
# include <socket.h>
 
41
#endif
 
42
 
 
43
#ifdef TCPCONN
 
44
# include <netinet/in.h>
 
45
#endif
 
46
 
 
47
#ifdef UNIXCONN
 
48
# ifndef __Lynx__
 
49
#  include <sys/un.h>
 
50
# else
 
51
#  include <un.h>
 
52
# endif
 
53
#endif
 
54
 
 
55
#ifdef DNETCONN
 
56
# include <netdnet/dn.h>
 
57
#endif
 
58
 
 
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
 
65
 
 
66
#ifdef BSD
 
67
# if (BSD >= 199103)
 
68
#  define VARIABLE_IFREQ
 
69
# endif
 
70
#endif
 
71
 
 
72
#endif /* _DM_SOCKET_H_ */