mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Check endianness of build with autotools to enable md5 support on more platforms.
This commit is contained in:
parent
585113d42d
commit
73e921b862
|
|
@ -109,6 +109,8 @@ fi
|
|||
|
||||
AC_C_INLINE
|
||||
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
AC_CHECK_LIB(pthread, pthread_create, ,
|
||||
AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
|
||||
AC_CHECK_LIB(m, sqrt, ,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (C) 2006-2011 Con Kolivas
|
||||
Copyright (C) 2006-2012 Con Kolivas
|
||||
Copyright (C) 2011 Peter Hyman
|
||||
Copyright (C) 1998-2003 Andrew Tridgell
|
||||
|
||||
|
|
@ -60,6 +60,19 @@ extern "C"
|
|||
void *alloca (size_t);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ENDIAN_H
|
||||
# include <endian.h>
|
||||
#elif HAVE_SYS_ENDIAN_H
|
||||
# include <sys/endian.h>
|
||||
#endif
|
||||
#ifndef __BYTE_ORDER
|
||||
# ifdef WORDS_BIGENDIAN
|
||||
# define __BYTE_ORDER __BIG_ENDIAN
|
||||
# else
|
||||
# define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MD5_DIGEST_SIZE
|
||||
# define MD5_DIGEST_SIZE 16
|
||||
#endif
|
||||
|
|
|
|||
3
md5.c
3
md5.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (C) 2011 Con Kolivas
|
||||
Copyright (C) 2012 Con Kolivas
|
||||
Copyright (C) 1995-2011 Ulrich Drepper.
|
||||
|
||||
Functions to compute MD5 message digest of files or memory blocks.
|
||||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "lrzip_private.h"
|
||||
#include "md5.h"
|
||||
|
||||
#if USE_UNLOCKED_IO
|
||||
|
|
|
|||
Loading…
Reference in a new issue