mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
MFH: Fix build on solaris
This commit is contained in:
parent
9d5ab6e54f
commit
569ea28207
@ -463,6 +463,27 @@ if test "$ac_cv_type_mbstate_t" = "yes"; then
|
|||||||
AC_DEFINE([HAVE_MBSTATE_T], 1, [Define if your system has mbstate_t in wchar.h])
|
AC_DEFINE([HAVE_MBSTATE_T], 1, [Define if your system has mbstate_t in wchar.h])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Check for u_int32_t
|
||||||
|
dnl
|
||||||
|
AC_CACHE_CHECK([for u_int32_t], [ac_cv_type_u_int32_t],[
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
|
# include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
],[
|
||||||
|
int __tmp__() { u_int32_t a; }
|
||||||
|
],[
|
||||||
|
ac_cv_type_u_int32_t=yes
|
||||||
|
],[
|
||||||
|
ac_cv_type_u_int32_t=no
|
||||||
|
])])
|
||||||
|
if test "$ac_cv_type_u_int32_t" = "yes"; then
|
||||||
|
AC_DEFINE([HAVE_U_INT32_T], 1, [Define if your system has u_int32_t in sys/types.h])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_C_INLINE
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Setup extension sources
|
dnl Setup extension sources
|
||||||
dnl
|
dnl
|
||||||
|
@ -184,7 +184,7 @@ static u_int32_t fp_maskl[8][256], fp_maskr[8][256];
|
|||||||
static u_int32_t key_perm_maskl[8][128], key_perm_maskr[8][128];
|
static u_int32_t key_perm_maskl[8][128], key_perm_maskr[8][128];
|
||||||
static u_int32_t comp_maskl[8][128], comp_maskr[8][128];
|
static u_int32_t comp_maskl[8][128], comp_maskr[8][128];
|
||||||
|
|
||||||
__inline int
|
static inline int
|
||||||
ascii_to_bin(char ch)
|
ascii_to_bin(char ch)
|
||||||
{
|
{
|
||||||
if (ch > 'z')
|
if (ch > 'z')
|
||||||
|
@ -2,11 +2,18 @@
|
|||||||
#ifndef _CRYPT_FREESEC_H
|
#ifndef _CRYPT_FREESEC_H
|
||||||
#define _CRYPT_FREESEC_H
|
#define _CRYPT_FREESEC_H
|
||||||
|
|
||||||
|
#include "php_config.h"
|
||||||
|
|
||||||
#if PHP_WIN32
|
#if PHP_WIN32
|
||||||
# include "win32/php_stdint.h"
|
# include "win32/php_stdint.h"
|
||||||
#elif HAVE_STDINT_H
|
#elif HAVE_STDINT_H
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if !PHP_WIN32
|
||||||
|
# ifndef HAVE_U_INT32_T
|
||||||
|
typedef uint32_t u_int32_t;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MD5_HASH_MAX_LEN 120
|
#define MD5_HASH_MAX_LEN 120
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user