From: Martin Willi Date: Wed, 8 Jan 2014 11:00:06 +0000 (+0100) Subject: libpts: Fix build on Windows X-Git-Tag: 5.2.0dr6~24^2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a81a04d39e9d02c5fde12a84d698af3af3f55143;p=thirdparty%2Fstrongswan.git libpts: Fix build on Windows --- diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c index d43dce9edc..3bddc6c399 100644 --- a/src/libpts/pts/pts.c +++ b/src/libpts/pts/pts.c @@ -35,7 +35,6 @@ #include #include -#include #include #include #include @@ -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;