Browse Source

ndk_patches: Remove sha1.h

android-5
Fredrik Fornwall 9 years ago
parent
commit
46de1c2b41
  1. 6
      build-package.sh
  2. 31
      ndk_patches/sha1.h

6
build-package.sh

@ -164,10 +164,8 @@ if [ ! -d $TERMUX_STANDALONE_TOOLCHAIN ]; then
patch -p1; patch -p1;
echo "PATCHING FILE $f done!" echo "PATCHING FILE $f done!"
done done
# sha1.h was removed from android ndk for platforms above 19, but needed by the aapt package # sysexits.h is header-only and used by a few programs:
# JNIHelp.h is also used by aapt cp $TERMUX_SCRIPTDIR/ndk_patches/sysexits.h $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include
# sysexits.h is header-only and used by some unix code
cp $TERMUX_SCRIPTDIR/ndk_patches/{sha1.h,sysexits.h} $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include
fi fi
export TERMUX_COMMON_CACHEDIR="$TERMUX_TOPDIR/_cache" export TERMUX_COMMON_CACHEDIR="$TERMUX_TOPDIR/_cache"

31
ndk_patches/sha1.h

@ -1,31 +0,0 @@
/* $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $ */
/*
* SHA-1 in C
* By Steve Reid <steve@edmweb.com>
* 100% Public Domain
*/
#ifndef _SYS_SHA1_H_
#define _SYS_SHA1_H_
#include <sys/cdefs.h>
#include <sys/types.h>
#define SHA1_DIGEST_LENGTH 20
#define SHA1_DIGEST_STRING_LENGTH 41
typedef struct {
uint32_t state[5];
uint32_t count[2];
u_char buffer[64];
} SHA1_CTX;
__BEGIN_DECLS
void SHA1Transform(uint32_t[5], const u_char[64]);
void SHA1Init(SHA1_CTX *);
void SHA1Update(SHA1_CTX *, const u_char *, u_int);
void SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
__END_DECLS
#endif /* _SYS_SHA1_H_ */
Loading…
Cancel
Save