]> granicus.if.org Git - php/commitdiff
Force proper alignment of php_sockaddr_storage. Sparc will throw
authorSascha Schumann <sas@php.net>
Wed, 26 Sep 2001 15:12:20 +0000 (15:12 +0000)
committerSascha Schumann <sas@php.net>
Wed, 26 Sep 2001 15:12:20 +0000 (15:12 +0000)
a SIGBUS, when accessing the family part of a char-aligned structure.

ext/sockets/php_sockets.h

index 134eac4fe33e55da3fb0ce873448f5e66775c982..cea2b28be491519a48f1e25247933a0412aa2f1f 100644 (file)
@@ -97,7 +97,8 @@ typedef struct {
 } php_fd_set;
 
 typedef struct {
-       unsigned char   info[256];
+       long family;
+       char info[256];
 } php_sockaddr_storage;
 
 typedef struct {