blob: 8f6227671486942fe19e2f1b99d014907c13891c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// -*- C++ -*-
//=============================================================================
/**
* @file os_if.h
*
* sockets local interfaces
*
* $Id$
*
* @author Don Hinton <dhinton@dresystems.com>
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_NET_OS_IF_H
#define ACE_OS_INCLUDE_NET_OS_IF_H
#include "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (ACE_LACKS_NET_IF_H)
// This part if to avoid STL name conflict with the map structure
// in net/if.h.
# if defined (ACE_HAS_STL_MAP_CONFLICT)
# define map _Resource_Allocation_Map_
# endif /* ACE_HAS_STL_MAP_CONFLICT */
extern "C" {
# include /**/ <net/if.h>
}
# if defined (ACE_HAS_STL_MAP_CONFLICT)
# undef map
# endif /* ACE_HAS_STL_MAP_CONFLICT */
#endif /* !ACE_LACKS_NET_IF_H */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_PSOS)
# if !defined (IFF_LOOPBACK)
# define IFF_LOOPBACK IFF_EXTLOOPBACK
# endif /* IFF_LOOPBACK */
#endif /* ACE_PSOS */
#if defined (ACE_HAS_BROKEN_IF_HEADER)
struct ifafilt;
#endif /* ACE_HAS_BROKEN_IF_HEADER */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "ace/post.h"
#endif /* ACE_OS_INCLUDE_NET_OS_IF_H */
|