Index: mbdyn/base/extforce.h
===================================================================
RCS file: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/base/extforce.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- mbdyn/base/extforce.h	4 Jan 2010 06:04:04 -0000	1.17
+++ mbdyn/base/extforce.h	5 Feb 2010 16:20:22 -0000	1.18
@@ -42,8 +42,8 @@
 
 #ifdef USE_SOCKET
 #include "usesock.h"
-#include "mbc.h"
 #endif // USE_SOCKET
+#include "mbc.h"
 
 /* ExtFileHandlerBase - begin */
 
Index: mbdyn/struct/modalext.cc
===================================================================
RCS file: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/struct/modalext.cc,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- mbdyn/struct/modalext.cc	20 Dec 2009 22:47:59 -0000	1.22
+++ mbdyn/struct/modalext.cc	5 Feb 2010 16:20:22 -0000	1.23
@@ -76,6 +76,7 @@
 				<< ' ' << uModes
 				<< std::endl;
 
+#ifdef USE_SOCKET
 		} else {
 			char buf[sizeof(uint8_t) + sizeof(uint8_t) + sizeof(uint32_t)];
 			uint8_t *uint8_ptr;
@@ -96,6 +97,7 @@
 			} else if (rc != sizeof(buf)) {
 
 			}
+#endif // USE_SOCKET
 		}
 		} break;
 
@@ -111,6 +113,7 @@
 				return false;
 			}
 
+#ifdef USE_SOCKET
 		} else {
 			char buf[sizeof(uint8_t) + sizeof(uint8_t) + sizeof(uint32_t)];
 			uint8_t *uint8_ptr;
@@ -131,6 +134,7 @@
 
 			uint32_ptr = (uint32_t *)&uint8_ptr[2];
 			uM = uint32_ptr[0];
+#endif // USE_SOCKET
 		}
 
 		if (type != MBC_MODAL || bR != bRigid || uM != uModes) {
Index: mbdyn/struct/strext.cc
===================================================================
RCS file: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/struct/strext.cc,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- mbdyn/struct/strext.cc	20 Dec 2009 16:52:32 -0000	1.31
+++ mbdyn/struct/strext.cc	5 Feb 2010 16:20:22 -0000	1.32
@@ -108,6 +108,7 @@
 		std::ostream *outfp = pEFH->GetOutStream();
 		if (outfp) {
 
+#ifdef USE_SOCKET
 		} else {
 			char buf[sizeof(uint8_t) + sizeof(uint32_t)];
 			uint8_t *uint8_ptr;
@@ -127,6 +128,7 @@
 			} else if (rc != sizeof(buf)) {
 
 			}
+#endif // USE_SOCKET
 		}
 
 	} else {
@@ -135,6 +137,7 @@
 		std::istream *infp = pEFH->GetInStream();
 		if (infp) {
 
+#ifdef USE_SOCKET
 		} else {
 			char buf[sizeof(uint8_t) + sizeof(uint32_t)];
 			uint8_t *uint8_ptr;
@@ -156,6 +159,7 @@
 
 			uint32_ptr = (uint32_t *)&uint8_ptr[1];
 			uN = uint32_ptr[0];
+#endif // USE_SOCKET
 		}
 
 		if (uN != Nodes.size()) {

