diff options
| author | Sascha Schumann <sas@php.net> | 2001-09-26 15:12:20 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2001-09-26 15:12:20 +0000 |
| commit | bfef93878c42498cd30d2dc2626a2452b6148a9a (patch) | |
| tree | f684ad7e5b142680a184e688bf89a54a4f077ea9 /ext/sockets/php_sockets.h | |
| parent | 9d4c81e925fb21d959bf652a41310e24bdf81658 (diff) | |
| download | php-git-bfef93878c42498cd30d2dc2626a2452b6148a9a.tar.gz | |
Force proper alignment of php_sockaddr_storage. Sparc will throw
a SIGBUS, when accessing the family part of a char-aligned structure.
Diffstat (limited to 'ext/sockets/php_sockets.h')
| -rw-r--r-- | ext/sockets/php_sockets.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index 134eac4fe3..cea2b28be4 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -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 { |
