Re-enable mmap test in configure & fix the code build again
- this stuff has been disabled for years, lets see what breaks...
This commit is contained in:
parent
8dd92d661d
commit
4cb02aa928
|
@ -514,10 +514,7 @@ AC_TYPE_SIZE_T
|
||||||
|
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
AC_FUNC_VPRINTF
|
AC_FUNC_VPRINTF
|
||||||
dnl XXX don't want to re-enable code that's been unused for years at this
|
AC_FUNC_MMAP
|
||||||
dnl point, but should offer good performance improvements, check after
|
|
||||||
dnl 4.4.2.1...
|
|
||||||
dnl AC_FUNC_MMAP
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS(mtrace)
|
AC_CHECK_FUNCS(mtrace)
|
||||||
AC_CHECK_FUNCS(strndup)
|
AC_CHECK_FUNCS(strndup)
|
||||||
|
|
|
@ -880,6 +880,7 @@ static int writeFile(FSM_t fsm, int writeData)
|
||||||
char * rdbuf = NULL;
|
char * rdbuf = NULL;
|
||||||
void * mapped = (void *)-1;
|
void * mapped = (void *)-1;
|
||||||
size_t nmapped;
|
size_t nmapped;
|
||||||
|
int xx;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rc = fsmNext(fsm, FSM_ROPEN);
|
rc = fsmNext(fsm, FSM_ROPEN);
|
||||||
|
|
|
@ -155,6 +155,7 @@ int rpmDoDigest(pgpHashAlgo algo, const char * fn,int asAscii,
|
||||||
case URL_IS_UNKNOWN:
|
case URL_IS_UNKNOWN:
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
|
int xx;
|
||||||
DIGEST_CTX ctx;
|
DIGEST_CTX ctx;
|
||||||
void * mapped;
|
void * mapped;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue