YARP
Yet Another Robot Platform
PlatformIfaddrs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 
10 #ifndef YARP_OS_IMPL_PLATFORMIFADDRS_H
11 #define YARP_OS_IMPL_PLATFORMIFADDRS_H
12 
13 #include <yarp/conf/system.h>
14 #if defined(YARP_HAS_IFADDRS_H)
15 # include <ifaddrs.h>
16 #endif
17 
18 namespace yarp {
19 namespace os {
20 namespace impl {
21 
22 // ACE_OS::getifaddrs, etc are not implemented, anyway ACE implementation
23 // is different, therefore they are not needed.
24 #if !defined(YARP_HAS_ACE)
25 using ::freeifaddrs;
26 using ::getifaddrs;
27 #endif
28 
29 } // namespace impl
30 } // namespace os
31 } // namespace yarp
32 
33 #endif // YARP_OS_IMPL_PLATFORMIFADDRS_H
system.h
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18