aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-11-12 16:58:49 +0100
committermarha <marha@users.sourceforge.net>2013-11-12 16:58:49 +0100
commit6d8fefe38077f4d532c256e79cfcaf2a46c5269d (patch)
treedfc74a8d253b690dac620212cbb9d46001cdaa2b /apps
parent0e01270aeda311bf52c046f6a68e8b3e1fa86cb8 (diff)
downloadvcxsrv-6d8fefe38077f4d532c256e79cfcaf2a46c5269d.tar.gz
vcxsrv-6d8fefe38077f4d532c256e79cfcaf2a46c5269d.tar.bz2
vcxsrv-6d8fefe38077f4d532c256e79cfcaf2a46c5269d.zip
Now use visual studio 2013 express edition for compilation
Diffstat (limited to 'apps')
-rw-r--r--apps/xauth/gethost.c5
-rw-r--r--apps/xauth/process.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/apps/xauth/gethost.c b/apps/xauth/gethost.c
index acac86478..cac6e9ec1 100644
--- a/apps/xauth/gethost.c
+++ b/apps/xauth/gethost.c
@@ -72,6 +72,11 @@ in this Software without prior written authorization from The Open Group.
#ifndef WIN32
#include <arpa/inet.h>
+#else
+#if NTDDI_VERSION < NTDDI_VISTA
+int inet_pton(int af, const char *src, void *dst);
+const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
+#endif
#endif
#ifdef SIGALRM
diff --git a/apps/xauth/process.c b/apps/xauth/process.c
index a4021c7e6..f4f543cf8 100644
--- a/apps/xauth/process.c
+++ b/apps/xauth/process.c
@@ -810,7 +810,7 @@ write_auth_file(char *tmp_nam)
(void) unlink (tmp_nam);
/* CPhipps 2000/02/12 - fix file unlink/fopen race */
fd = open(tmp_nam, O_WRONLY | O_CREAT | O_EXCL, 0600);
- if (fd != -1) fp = fdopen (fd, "wb");
+ if (fd != -1) fp = _fdopen (fd, "wb");
if (!fp) {
if (fd != -1) close(fd);
fprintf (stderr, "%s: unable to open tmp file \"%s\"\n",