]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libpts: Fix build on Windows
authorMartin Willi <martin@revosec.ch>
Wed, 8 Jan 2014 11:00:06 +0000 (12:00 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:06 +0000 (15:53 +0200)
src/libpts/pts/pts.c

index d43dce9edc6c772488bfc90ec77bdd6c037e772c..3bddc6c399a317dc92eeffd55be6d05146de2090 100644 (file)
@@ -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;