aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/simulator/posix/hal_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/simulator/posix/hal_lld.h')
-rwxr-xr-xos/hal/ports/simulator/posix/hal_lld.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/os/hal/ports/simulator/posix/hal_lld.h b/os/hal/ports/simulator/posix/hal_lld.h
index 2a1dbf933..08dc51047 100755
--- a/os/hal/ports/simulator/posix/hal_lld.h
+++ b/os/hal/ports/simulator/posix/hal_lld.h
@@ -25,7 +25,15 @@
#ifndef HAL_LLD_H
#define HAL_LLD_H
+#if defined(WIN32)
#include <windows.h>
+#else
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <unistd.h>
+#include <fcntl.h>
+#endif
#include <stdio.h>
/*===========================================================================*/
@@ -35,7 +43,11 @@
/**
* @brief Platform name.
*/
+#if defined(WIN32)
#define PLATFORM_NAME "Win32 Simulator"
+#else
+#define PLATFORM_NAME "Posix Simulator"
+#endif
/*===========================================================================*/
/* Driver pre-compile time settings. */