Skip to content

Commit a50c589

Browse files
committed
Fix include mal-ordering.
1 parent 30e25bb commit a50c589

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

default/config/IpCfg.hpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
#include <Fw/Time/TimeInterval.hpp>
1313
#ifndef REF_IPCFG_HPP
1414
#define REF_IPCFG_HPP
15+
#ifdef TGT_OS_TYPE_VXWORKS
16+
#include <socket.h>
17+
#elif defined TGT_OS_TYPE_LINUX || TGT_OS_TYPE_DARWIN
18+
#include <sys/socket.h>
19+
#else
20+
#error OS not supported for IP Socket Communications
21+
#endif
1522

1623
enum IpCfg {
1724
SOCKET_SEND_TIMEOUT_SECONDS = 1, // Seconds component of timeout to an individual send
@@ -23,14 +30,6 @@ enum IpCfg {
2330
};
2431
static const Fw::TimeInterval SOCKET_RETRY_INTERVAL = Fw::TimeInterval(1, 0);
2532

26-
#ifdef TGT_OS_TYPE_VXWORKS
27-
#include <socket.h>
28-
#elif defined TGT_OS_TYPE_LINUX || TGT_OS_TYPE_DARWIN
29-
#include <sys/socket.h>
30-
#else
31-
#error OS not supported for IP Socket Communications
32-
#endif
33-
3433
// Value type enumeration
3534
enum SocketOptionValueType {
3635
SOCK_OPT_INT, // Integer value

0 commit comments

Comments
 (0)