aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-01-08 12:00:06 +0100
committerMartin Willi <martin@revosec.ch>2014-06-04 15:53:06 +0200
commita81a04d39e9d02c5fde12a84d698af3af3f55143 (patch)
tree831271a6d00ac01ea0287ba390820596c6cd0600 /src
parent2a062f38d08d236de9a362ecdbc83b7ee2977ef2 (diff)
downloadstrongswan-a81a04d39e9d02c5fde12a84d698af3af3f55143.tar.bz2
strongswan-a81a04d39e9d02c5fde12a84d698af3af3f55143.tar.xz
libpts: Fix build on Windows
Diffstat (limited to 'src')
-rw-r--r--src/libpts/pts/pts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c
index d43dce9ed..3bddc6c39 100644
--- a/src/libpts/pts/pts.c
+++ b/src/libpts/pts/pts.c
@@ -35,7 +35,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/utsname.h>
#include <libgen.h>
#include <unistd.h>
#include <errno.h>
@@ -537,6 +536,7 @@ static bool file_metadata(char *pathname, pts_file_metadata_t **entry)
{
this->type = PTS_FILE_FIFO;
}
+#ifndef WIN32
else if (S_ISLNK(st.st_mode))
{
this->type = PTS_FILE_SYM_LINK;
@@ -545,6 +545,7 @@ static bool file_metadata(char *pathname, pts_file_metadata_t **entry)
{
this->type = PTS_FILE_SOCKET;
}
+#endif /* WIN32 */
else
{
this->type = PTS_FILE_OTHER;