]> granicus.if.org Git - php/commitdiff
- fix compile issues for various packages (dbase, sysv*, zlib)
authorSascha Schumann <sas@php.net>
Fri, 21 May 1999 08:20:13 +0000 (08:20 +0000)
committerSascha Schumann <sas@php.net>
Fri, 21 May 1999 08:20:13 +0000 (08:20 +0000)
- some cleanup in mhash/mcrypt

12 files changed:
ext/dbase/dbase.c
ext/dbase/php_dbase.h [moved from ext/dbase/dbase.h with 98% similarity]
ext/gettext/gettext.c
ext/gettext/php3_gettext.h
ext/mcrypt/config.m4
ext/mcrypt/mcrypt.c
ext/mhash/mhash.c
ext/sysvsem/php3_sysvsem.h
ext/sysvsem/sysvsem.c
ext/sysvshm/php3_sysvshm.h
ext/sysvshm/sysvshm.c
ext/zlib/php3_zlib.h

index cd9ba2e8ad372486e3c19d903f4f46427624e603..171b789ebb6a8ea3acbafeef73691d482a708323 100644 (file)
@@ -38,8 +38,8 @@
 #include "php_globals.h"
 
 #if DBASE
-#include "dbase.h"
-#include "../dbase/dbf.h"
+#include "php_dbase.h"
+#include "dbf.h"
 #if defined(THREAD_SAFE)
 DWORD DbaseTls;
 static int numthreads=0;
similarity index 98%
rename from ext/dbase/dbase.h
rename to ext/dbase/php_dbase.h
index bcc0b5777b100c0053bd2524c6c042530becb971..35f78163bdd4c6dc1a5ab1b3884bd0f602ce417c 100644 (file)
@@ -49,4 +49,7 @@ extern void php3_dbase_get_record_with_names(INTERNAL_FUNCTION_PARAMETERS);
 #else
 #define dbase_module_ptr NULL
 #endif
+
+#define phpext_dbase_ptr dbase_module_ptr
+
 #endif /* _DBASE_H */
index 1c9a9fefd13ba0f056594bb4166c2e73dff79a53..3f85d7ce753d4e072cb227fbffd40e794c34876e 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <stdio.h>
 #include "php.h"
-#include "internal_functions.h"
 #include "php3_gettext.h"
 
 #if HAVE_LIBINTL
index b3ae0131d5606b0de1ca098787f8210c5cd6702c..87e6ae4b6ebaa7687cc25d1f74d67ec690899987 100644 (file)
@@ -38,7 +38,7 @@
 #endif
 
 extern php3_module_entry php3_gettext_module_entry;
-#define php3_gettext_module_ptr &php3_gettext_module_entry
+#define gettext_module_ptr &php3_gettext_module_entry
 
 extern void php3_info_gettext(ZEND_MODULE_INFO_FUNC_ARGS);
 extern void php3_textdomain(INTERNAL_FUNCTION_PARAMETERS);
@@ -48,7 +48,9 @@ extern void php3_dcgettext(INTERNAL_FUNCTION_PARAMETERS);
 extern void php3_bindtextdomain(INTERNAL_FUNCTION_PARAMETERS);
 
 #else
-#define php3_gettext_module_ptr NULL
+#define gettext_module_ptr NULL
 #endif /* HAVE_LIBINTL */
 
+#define phpext_gettext_ptr gettext_module_ptr
+
 #endif /* _GETTEXT_H */
index b1ff3d465a479442d2cd58a383c171b2d22823d6..1b20490d89bb796b2de79eace9304ff565a86dd4 100644 (file)
@@ -14,8 +14,7 @@ AC_ARG_WITH(mcrypt,
       fi
     done
     if test "$MCRYPT_DIR" = ""; then
-      AC_MSG_ERROR(Please install mcrypt.h and libmcrypt.a accordingly to the do
-cumentation - I cannot find mcrypt.h)
+      AC_MSG_ERROR(Please reinstall libmcrypt - I cannot find mcrypt.h)
     fi
     INCLUDES="$INCLUDES -I$MCRYPT_DIR/include"
     EXTRA_LIBS="$EXTRA_LIBS -L$MCRYPT_DIR/lib -lmcrypt"
index 6548ea2c160cba9ae052d030fcf023966662099f..a29e655499c0c3690116322af15f6e5668ee8f4d 100644 (file)
@@ -34,8 +34,8 @@
 #include "php_mcrypt.h"
 #include "fcntl.h"
 
-/* we should find a way to figure out whether RC6/IDEA are available */
 #define NON_FREE
+#define MCRYPT2
 #include "mcrypt.h"
 
 function_entry mcrypt_functions[] = {
@@ -138,8 +138,10 @@ static int php_minit_mcrypt(INIT_FUNC_ARGS)
        MCRYPT_ENTRY(TripleDES);
        MCRYPT_ENTRY(ThreeWAY);
        MCRYPT_ENTRY(GOST);
-#ifdef MCRYPT2
+#ifdef CRYPT
        MCRYPT_ENTRY(CRYPT);
+#endif
+#ifdef DES_COMPAT
        MCRYPT_ENTRY(DES_COMPAT);
 #endif
        MCRYPT_ENTRY(SAFER64);
index 39788a240067b36c1115c7b2b82ea8c6d2a5cca4..6d031a694fcf133ec0e84dbb0e1b4e74387971c1 100644 (file)
@@ -62,6 +62,12 @@ static int php_minit_mhash(INIT_FUNC_ARGS)
        MHASH_ENTRY(CRC32);
        MHASH_ENTRY(MD5);
        MHASH_ENTRY(SHA1);
+       MHASH_ENTRY(HAVAL);
+       MHASH_ENTRY(RIPEMD128);
+       MHASH_ENTRY(RIPEMD160);
+       MHASH_ENTRY(TIGER);
+       MHASH_ENTRY(SNEFRU);
+       MHASH_ENTRY(GOST);
        
        return SUCCESS;
 }
index fcb971dc962d81e33b397047ba53995ca026b2c5..c5008a6a389d8a62a87e68cf9fa2c66df85bf8c9 100644 (file)
@@ -71,4 +71,6 @@ extern sysvsem_module php3_sysvsem_module;
 
 #endif
 
+#define phpext_sysvsem_ptr sysvsem_module_ptr
+
 #endif /* _PHP3_SYSVSEM_H */
index d143e4278a4d04339ac41d4595019077fe67eeff..c38d93d6c94ddf219c4e609ae3683fa46e257a93 100644 (file)
@@ -35,9 +35,7 @@
  * sas: Works for me on Linux 2.0.36 and FreeBSD 3.0-current
  */
 
-#ifndef MSVC5
-#include "php_config.h"
-#endif
+#include "php.h"
 
 #if HAVE_SYSVSEM
 
@@ -46,7 +44,6 @@
 #include <sys/sem.h>
 #include <errno.h>
 
-#include "php.h"
 #include "php3_sysvsem.h"
 
 #if !HAVE_SEMUN && defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ == 6
@@ -70,7 +67,7 @@ function_entry sysvsem_functions[] = {
        {NULL, NULL, NULL}
 };
 
-php3_module_entry sysvsem_module_entry = {
+zend_module_entry sysvsem_module_entry = {
        "System V semaphores", sysvsem_functions, php3_minit_sysvsem, NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
 };
 
index c47e561d2cae083e666be9105721d2dd19f0b258..530bfc6af75dfd7e7f41484398f3e0ecd4461a8c 100644 (file)
@@ -98,4 +98,6 @@ extern sysvshm_module php3_sysvshm_module;
 
 #endif
 
+#define phpext_sysvshm_ptr sysvshm_module_ptr
+
 #endif /* _PHP3_SYSVSHM_H */
index 88678478c74511c9772a5e010f37008c45753c40..36a2eae1ffe239906c748da0a94cf5353bceb2a2 100644 (file)
  * It may not compile or execute correctly on other systems.
  */
 
-#ifndef MSVC5
-#include "php_config.h"
-#endif
-
+#include "php.h"
 
 #if HAVE_SYSVSHM
 
 #include <errno.h>
 
-#include "php.h"
-#include "php3_var.h"
 #include "php3_sysvshm.h"
 
 
index 710c694cba5a152e2ccaaef967c481b3e49a71d8..48257a35d2c2bd3fbe1a0416df0e60a55705618b 100644 (file)
@@ -36,7 +36,7 @@
 #if HAVE_ZLIB
 
 extern php3_module_entry php3_zlib_module_entry;
-#define php3_zlib_module_ptr &php3_zlib_module_entry
+#define zlib_module_ptr &php3_zlib_module_entry
 
 extern int php3_minit_zlib(INIT_FUNC_ARGS);
 extern int php3_mshutdown_zlib(SHUTDOWN_FUNC_ARGS);
@@ -57,7 +57,9 @@ extern void php3_readgzfile(INTERNAL_FUNCTION_PARAMETERS);
 extern void php3_gzfile(INTERNAL_FUNCTION_PARAMETERS);
 
 #else
-#define php3_zlib_module_ptr NULL
+#define zlib_module_ptr NULL
 #endif /* HAVE_ZLIB */
 
+#define phpext_zlib_ptr zlib_module_ptr
+
 #endif /* _PHP3_ZLIB_H */