cvs: php4 /ext/sockets php_sockets.h
| From: | Sascha Schumann | Date: | Wed, 26 Sep 2001 15:12:20 +0000 |
| Subject: | cvs: php4 /ext/sockets php_sockets.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7569@lists.php.net to get a copy of this message | ||
sas Wed Sep 26 11:12:20 2001 EDT
Modified files:
/php4/ext/sockets php_sockets.h
Log:
Force proper alignment of php_sockaddr_storage. Sparc will throw
a SIGBUS, when accessing the family part of a char-aligned structure.
Index: php4/ext/sockets/php_sockets.h
diff -u php4/ext/sockets/php_sockets.h:1.12 php4/ext/sockets/php_sockets.h:1.13
--- php4/ext/sockets/php_sockets.h:1.12 Tue Sep 4 18:27:30 2001
+++ php4/ext/sockets/php_sockets.h Wed Sep 26 11:12:20 2001
@@ -22,7 +22,7 @@
#ifndef PHP_SOCKETS_H
#define PHP_SOCKETS_H
-/* $Id: php_sockets.h,v 1.12 2001/09/04 22:27:30 jason Exp $ */
+/* $Id: php_sockets.h,v 1.13 2001/09/26 15:12:20 sas Exp $ */
#if HAVE_SOCKETS
@@ -97,7 +97,8 @@
} php_fd_set;
typedef struct {
- unsigned char info[256];
+ long family;
+ char info[256];
} php_sockaddr_storage;
typedef struct {