comparison configure @ 31849:542ad87bf1b9

Add sys/types.h #include before socket.h #include in sockaddr_storage test. We have that #include before socket.h in all other tests. As a sideeffect, this should make the test work on OpenBSD.
author diego
date Thu, 05 Aug 2010 07:37:58 +0000
parents 2cbafa9f6758
children 4ab8b78352ff
comparison
equal deleted inserted replaced
31848:1241f62e54e7 31849:542ad87bf1b9
3264 _struct_sockaddr_storage=no 3264 _struct_sockaddr_storage=no
3265 cat > $TMPC << EOF 3265 cat > $TMPC << EOF
3266 #if HAVE_WINSOCK2_H 3266 #if HAVE_WINSOCK2_H
3267 #include <winsock2.h> 3267 #include <winsock2.h>
3268 #else 3268 #else
3269 #include <sys/types.h>
3269 #include <sys/socket.h> 3270 #include <sys/socket.h>
3270 #endif 3271 #endif
3271 int main(void) { struct sockaddr_storage sas; return 0; } 3272 int main(void) { struct sockaddr_storage sas; return 0; }
3272 EOF 3273 EOF
3273 cc_check $cc_check_winsock2_h && _struct_sockaddr_storage=yes 3274 cc_check $cc_check_winsock2_h && _struct_sockaddr_storage=yes