diff options
author | David P <megver83@parabola.nu> | 2017-09-12 22:35:07 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2017-09-12 22:35:07 -0300 |
commit | 8808cdea72d48a50b2169731c5c2a13cc00de57b (patch) | |
tree | f18f659523b4b3a0ff487105c9b2c2bb98c48b3a /pcr/john/fix-i686-openmp.patch | |
parent | 1528cfffb7ddaf4b2ff74b481fdd86a9415cb933 (diff) | |
download | abslibre-8808cdea72d48a50b2169731c5c2a13cc00de57b.tar.gz abslibre-8808cdea72d48a50b2169731c5c2a13cc00de57b.tar.bz2 abslibre-8808cdea72d48a50b2169731c5c2a13cc00de57b.zip |
Added john for ARMv7h
Why it isn't in ALARM??
Diffstat (limited to 'pcr/john/fix-i686-openmp.patch')
-rw-r--r-- | pcr/john/fix-i686-openmp.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/pcr/john/fix-i686-openmp.patch b/pcr/john/fix-i686-openmp.patch new file mode 100644 index 000000000..05f075038 --- /dev/null +++ b/pcr/john/fix-i686-openmp.patch @@ -0,0 +1,69 @@ +From 70d2140adda533680aec3c0cb0e828a868fafa68 Mon Sep 17 00:00:00 2001 +From: jfoug <jfoug@cox.net> +Date: Fri, 28 Nov 2014 06:43:27 -0600 +Subject: [PATCH] crypt: problems with #defines and strdup + +--- + src/c3_fmt.c | 35 ++++++++++++++++++++++------------- + 1 file changed, 22 insertions(+), 13 deletions(-) + +diff --git a/src/c3_fmt.c b/src/c3_fmt.c +index d1c694e..0fe867f 100644 +--- a/src/c3_fmt.c ++++ b/src/c3_fmt.c +@@ -17,6 +17,28 @@ + + #if HAVE_CRYPT + ++/* if this comes after the #define crap below, there are often ++ * problems with strdup or other things not being defined. We ++ * move this block of includes to above the _XOPEN_* defines ++ */ ++#if STRING_WITH_STRINGS ++#include <string.h> ++#include <strings.h> ++#elif HAVE_STRING_H ++#include <string.h> ++#elif HAVE_STRINGS_H ++#include <strings.h> ++#endif ++#if !AC_BUILT ++#include <string.h> ++#ifndef _MSC_VER ++#include <strings.h> ++#endif ++#undef _XOPEN_VERSION ++#undef _XOPEN_SOURCE ++#undef _XOPEN_SOURCE_EXTENDED ++#undef _GNU_SOURCE ++ + #define _XOPEN_SOURCE 4 /* for crypt(3) */ + #define _XOPEN_SOURCE_EXTENDED 1 /* for OpenBSD */ + #define _XOPEN_VERSION 4 +@@ -24,11 +46,6 @@ + #define _GNU_SOURCE 1 /* for crypt_r(3) */ + #include <stdio.h> + +-#if !AC_BUILT +-#include <string.h> +-#ifndef _MSC_VER +-#include <strings.h> +-#endif + #ifdef __CYGWIN__ + #include <crypt.h> + #endif +@@ -41,14 +58,6 @@ + #endif + #endif + +-#if STRING_WITH_STRINGS +-#include <string.h> +-#include <strings.h> +-#elif HAVE_STRING_H +-#include <string.h> +-#elif HAVE_STRINGS_H +-#include <strings.h> +-#endif + #if HAVE_CRYPT_H + #include <crypt.h> + #endif |