Re: Bug 8468
| From: | Jon Parise | Date: | Wed, 03 Jan 2001 18:11:26 +0000 |
| Subject: | Re: Bug 8468 | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42858@lists.php.net to get a copy of this message | ||
On Wed, Jan 03, 2001 at 05:13:55PM +0200, Stanislav Malyshev wrote:
> JP>> Could someone please take a look at
> JP>> http://bugs.php.net/bugs.php?id=8468
> JP>> before 4.0.4pl1 is rolled? It seems like it should be an easy fix,
>
> Maybe an easy fix for one who has your compiler (which isn't so freely
> available)...
I just fixed it with this patch:
--- sockets.c.orig Wed Jan 3 12:47:34 2001
+++ sockets.c Wed Jan 3 12:55:43 2001
@@ -26,9 +26,14 @@
/* This hopefully will fix some compile errors on other platforms --
* the usage of msg_control/msg_controllen are X/Open Extended
- * attributes, or so it seems, by reading HP/UX 10.20 manual pages. */
+ * or so it seems, by reading HP/UX 10.20 manual pages.
+ *
+ * The second two defines are for Solaris 8 with the Sun WorkShop compiler.
+ */
#define _XOPEN_SOURCE_EXTENDED
+#define _XPG4_2
+#define __EXTENSIONS__
#include "ext/standard/info.h"
#include "php_sockets.h"
@@ -64,6 +69,12 @@
#else
#define MSG_WAITALL 0x00000000
#endif
+#endif
+
+/* Solaris 8 doesn't appear to define SUN_LEN in <sys/un.h> */
+#ifndef SUN_LEN
+#define SUN_LEN(su) \
+ (sizeof(*(su)) - sizeof((su)->sun_path) +
strlen((su)->sun_path))
#endif
/* Use the read() wrapper, stopping at '\n', '\r', or '\0'. */
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member