summaryrefslogtreecommitdiff
path: root/interface/vsomeip/primitive_types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'interface/vsomeip/primitive_types.hpp')
-rw-r--r--interface/vsomeip/primitive_types.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/interface/vsomeip/primitive_types.hpp b/interface/vsomeip/primitive_types.hpp
index 26a9fd7..0a9eaa5 100644
--- a/interface/vsomeip/primitive_types.hpp
+++ b/interface/vsomeip/primitive_types.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2014-2021 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -10,7 +10,7 @@
#include <cstdint>
#include <string>
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
#include <sys/types.h>
#endif
@@ -41,9 +41,12 @@ typedef uint8_t interface_version_t;
typedef uint8_t byte_t;
typedef uint16_t diagnosis_t;
+typedef uint16_t port_t;
+
// Addresses
typedef std::array<byte_t, 4> ipv4_address_t;
typedef std::array<byte_t, 16> ipv6_address_t;
+typedef std::uint16_t port_t;
typedef std::string trace_channel_t;