CVS update: php3/functions
| From: | sas | Date: | Wed, 19 May 1999 12:55:46 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5787@lists.php.net to get a copy of this message | ||
Date: Wednesday May 19, 1999 @ 8:55
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv25740/functions
Modified Files:
sysvsem.c
Log Message:
fix for glibc 2.1 systems
Index: php3/functions/sysvsem.c
diff -u php3/functions/sysvsem.c:1.5 php3/functions/sysvsem.c:1.6
--- php3/functions/sysvsem.c:1.5 Fri Jan 1 12:59:19 1999
+++ php3/functions/sysvsem.c Wed May 19 08:55:45 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sysvsem.c,v 1.5 1999/01/01 17:59:19 zeev Exp $ */
+/* $Id: sysvsem.c,v 1.6 1999/05/19 12:55:45 sas Exp $ */
/* This has been built and tested on Solaris 2.6 and Linux 2.1.122.
* It may not compile or execute correctly on other systems.
@@ -51,6 +51,19 @@
#include "php3_list.h"
#include "php3_sysvsem.h"
+#if !HAVE_SEMUN && defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ == 6
+
+union semun {
+ int val; /* value for SETVAL */
+ struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */
+ unsigned short int *array; /* array for GETALL, SETALL */
+ struct seminfo *__buf; /* buffer for IPC_INFO */
+};
+
+#undef HAVE_SEMUN
+#define HAVE_SEMUN 1
+
+#endif
function_entry sysvsem_functions[] = {
{"sem_get", php3_sysvsem_get, NULL},
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net