* net.cc: Use gethostname define from winsock2.h.
This commit is contained in:
		
							parent
							
								
									7ba5067f87
								
							
						
					
					
						commit
						68115c74c5
					
				|  | @ -1,3 +1,7 @@ | ||||||
|  | 2003-01-10  Christopher Faylor  <cgf@redhat.com> | ||||||
|  | 
 | ||||||
|  | 	* net.cc: Use gethostname define from winsock2.h. | ||||||
|  | 
 | ||||||
| 2003-01-10  Christopher Faylor  <cgf@redhat.com> | 2003-01-10  Christopher Faylor  <cgf@redhat.com> | ||||||
| 
 | 
 | ||||||
| 	* path.cc: Unrevert below reversion except for | 	* path.cc: Unrevert below reversion except for | ||||||
|  |  | ||||||
|  | @ -19,7 +19,9 @@ details. */ | ||||||
| #include <iphlpapi.h> | #include <iphlpapi.h> | ||||||
| 
 | 
 | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
|  | #define gethostname cygwin_gethostname | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
|  | #undef gethostname | ||||||
| #include <netdb.h> | #include <netdb.h> | ||||||
| #define USE_SYS_TYPES_FD_SET | #define USE_SYS_TYPES_FD_SET | ||||||
| #include <winsock2.h> | #include <winsock2.h> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue