* sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 1 Nov 2005 12:28:48 +0000 (12:28 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 1 Nov 2005 12:28:48 +0000 (12:28 +0000)
  enabled sockets on WIN32

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3927 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
sim/ucsim/app.cc
sim/ucsim/cmd.src/cmdutil.cc
sim/ucsim/cmd.src/newcmd.cc

index 3b7d5e39348df07a0dab066e8a056f6bbb587b04..86aa98d3c95db087f84e322295eba79f01b8d60f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-01 Borut Razem <borut.razem AT siol.net>
+
+       * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
+         enabled sockets on WIN32
+
 2005-10-31 Borut Razem <borut.razem AT siol.net>
 
        * support/regression/generate-cases.py: escape backslashes in {testcase}:
index f357afefc29766e67761d318cd05b626f8251177..bc8e81a45939689bef59c3fb036d7f9c37799ac9 100644 (file)
@@ -30,12 +30,17 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #ifdef HAVE_GETOPT_H
 # include <getopt.h>
 #endif
-#ifdef SOCKET_AVAIL
-#include <sys/socket.h>
+#ifdef _WIN32
+# include <winsock2.h>
+# define SOCKET_AVAIL
+#elif defined HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
 #endif
 #include <ctype.h>
 #include <errno.h>
index 86fd4c542942a474fcab6dee77ed0ed63ced96cc..d27a335fb1f88c05100efafacd338b7ca27f0d67 100644 (file)
@@ -31,7 +31,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <stdlib.h>
 #include <ctype.h>
 #include <sys/types.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _WIN32
+# include <winsock23.h>
+# define SOCKET_AVAIL
+#elif defined HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
 # include <netinet/in.h>
 # include <arpa/inet.h>
index e0ee99c34e9ecce03e0cf5bfbe8908baaaacd777..fb1053ab6c9128e7b91b065abfaafb1d6266735e 100644 (file)
@@ -32,7 +32,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <stdarg.h>
 #include <stdlib.h>
 #include <sys/types.h>
-#ifdef HAVE_SYS_SOCKET_H
+#ifdef _WIN32
+# include <winsock23.h>
+# define SOCKET_AVAIL
+#elif defined HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
 # include <netinet/in.h>
 # include <arpa/inet.h>
@@ -42,7 +45,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #if FD_HEADER_OK
 # include HEADER_FD
 #endif
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #include "i_string.h"
 
 #include "cmdlexcl.h"