Changeset 331
- Timestamp:
- 04/29/08 17:30:13 (5 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
apps/obex_tcp.c (modified) (2 diffs)
-
apps/obex_test.c (modified) (3 diffs)
-
ircp/ircp_client.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/apps/obex_tcp.c
r320 r331 29 29 #include <string.h> 30 30 31 #if _WIN3231 #ifdef _WIN32 32 32 #include <winsock2.h> 33 #define in_addr_t unsigned long 33 34 #else 34 35 … … 62 63 { 63 64 struct hostent *host; 64 u_longinaddr;65 in_addr_t inaddr; 65 66 66 67 /* Is the address in dotted decimal? */ -
trunk/apps/obex_test.c
r328 r331 29 29 #include <string.h> 30 30 31 #if _WIN3231 #ifdef _WIN32 32 32 #include <winsock2.h> 33 #define in_addr_t unsigned long 33 34 #else 34 35 #include <sys/socket.h> … … 113 114 { 114 115 struct hostent *host; 115 u_longinaddr;116 in_addr_t inaddr; 116 117 117 118 /* Is the address in dotted decimal? */ … … 404 405 } 405 406 if(btobex) { 406 #if HAVE_BLUETOOTH407 #ifdef HAVE_BLUETOOTH 407 408 if(BtOBEX_ServerRegister(handle, BDADDR_ANY, channel) < 0) { 408 409 printf("Server register error! (Bluetooth)\n"); -
trunk/ircp/ircp_client.c
r316 r331 7 7 #ifdef _WIN32 8 8 #include <windows.h> 9 #define in_addr_t unsigned long 9 10 #include <direct.h> 10 11 #endif … … 213 214 { 214 215 struct sockaddr_in peer; 215 u_longinaddr;216 in_addr_t inaddr; 216 217 if ((inaddr = inet_addr("127.0.0.1")) != INADDR_NONE) { 217 218 memcpy((char *) &peer.sin_addr, (char *) &inaddr,
